http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57016
Bug #: 57016 Summary: [4.9 Regression] [C++0x] ICE: unexpected expression '__is_final(hash<int>)' of kind trait_expr Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 29905 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29905 autoreduced testcase Compiler output: $ gcc -std=gnu++0x testcase.C testcase.C: In instantiation of 'class unordered_set<int>': testcase.C:130:16: required from here testcase.C:127:49: internal compiler error: unexpected expression '__is_final(hash<int>)' of kind trait_expr template < typename > pair < iterator, bool > emplace (); ^ 0x72b0a8 cxx_eval_constant_expression /mnt/svn/gcc-trunk/gcc/cp/semantics.c:8158 0x72dfc6 cxx_eval_outermost_constant_expr /mnt/svn/gcc-trunk/gcc/cp/semantics.c:8178 0x617685 convert_nontype_argument /mnt/svn/gcc-trunk/gcc/cp/pt.c:5601 0x617685 convert_template_argument /mnt/svn/gcc-trunk/gcc/cp/pt.c:6382 0x610c1d coerce_template_parms /mnt/svn/gcc-trunk/gcc/cp/pt.c:6721 0x619498 lookup_template_class_1 /mnt/svn/gcc-trunk/gcc/cp/pt.c:7280 0x619498 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) /mnt/svn/gcc-trunk/gcc/cp/pt.c:7577 0x61ea91 tsubst_aggr_type /mnt/svn/gcc-trunk/gcc/cp/pt.c:9837 0x6121c0 tsubst(tree_node*, tree_node*, int, tree_node*) /mnt/svn/gcc-trunk/gcc/cp/pt.c:11176 0x61e06a tsubst_template_args /mnt/svn/gcc-trunk/gcc/cp/pt.c:9634 0x61e14b tsubst_template_args /mnt/svn/gcc-trunk/gcc/cp/pt.c:9616 0x61ea6e tsubst_aggr_type /mnt/svn/gcc-trunk/gcc/cp/pt.c:9831 0x6121c0 tsubst(tree_node*, tree_node*, int, tree_node*) /mnt/svn/gcc-trunk/gcc/cp/pt.c:11176 0x61e06a tsubst_template_args /mnt/svn/gcc-trunk/gcc/cp/pt.c:9634 0x61ea6e tsubst_aggr_type /mnt/svn/gcc-trunk/gcc/cp/pt.c:9831 0x6121c0 tsubst(tree_node*, tree_node*, int, tree_node*) /mnt/svn/gcc-trunk/gcc/cp/pt.c:11176 0x6353d5 tsubst_qualified_id /mnt/svn/gcc-trunk/gcc/cp/pt.c:11967 0x5ff41f tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /mnt/svn/gcc-trunk/gcc/cp/pt.c:13702 0x60809f tsubst_expr /mnt/svn/gcc-trunk/gcc/cp/pt.c:13383 0x614d79 tsubst_template_arg /mnt/svn/gcc-trunk/gcc/cp/pt.c:9100 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r198108 - crash 4.8 r198108 - OK