http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47303
Summary: [4.6 Regression] [C++0x] ICE: in varpool_node, at varpool.c:134 with -fabi-version=1 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 22972 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22972 reduced testcase (from g++.dg/lookup/anon7.C) Compiler output: $ gcc -fabi-version=1 testcase.C testcase.C: In member function 'void F::xwrapper(int) [with void (Z::* <anonymous>)(int) = &Z::cc]': testcase.C:19:21: instantiated from here testcase.C:15:5: internal compiler error: in varpool_node, at varpool.c:134 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (gdb) bt #0 fancy_abort (file=0x12f6d78 "/mnt/svn/gcc-trunk/gcc/varpool.c", line=134, function=0x12f6ee1 "varpool_node") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892 #1 0x0000000000c79047 in varpool_node (decl=0x7ffff7ee5500) at /mnt/svn/gcc-trunk/gcc/varpool.c:133 #2 0x0000000000c7a1e5 in varpool_extra_name_alias (alias=0x7ffff7ee56e0, decl=<value optimized out>) at /mnt/svn/gcc-trunk/gcc/varpool.c:664 #3 0x00000000005adc88 in finish_anon_union (anon_union_decl=0x7ffff7ee5500) at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:1412 #4 0x0000000000552d46 in tsubst_expr (t=<value optimized out>, args=0x7ffff5d96258, complain=3, in_decl=0x7ffff5d93508, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12005 #5 0x0000000000550fb5 in tsubst_expr (t=<value optimized out>, args=0x7ffff5d96258, complain=3, in_decl=0x7ffff5d93508, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:11941 #6 0x0000000000550999 in tsubst_expr (t=0x7ffff5d6f800, args=0x7ffff5d96258, complain=3, in_decl=0x7ffff5d93508, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12120 #7 0x000000000057d932 in instantiate_decl (d=0x7ffff5d86600, defer_ok=<value optimized out>, expl_inst_class_mem_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:17378 #8 0x0000000000584d44 in instantiate_pending_templates (retries=<value optimized out>) at /mnt/svn/gcc-trunk/gcc/cp/pt.c:17475 #9 0x00000000005b3042 in cp_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:3680 #10 0x0000000000a214b4 in compile_file (argc=14, argv=0x7fffffffdad8) at /mnt/svn/gcc-trunk/gcc/toplev.c:591 #11 do_compile (argc=14, argv=0x7fffffffdad8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1874 #12 toplev_main (argc=14, argv=0x7fffffffdad8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1937 #13 0x00007ffff65f1bbd in __libc_start_main () from /lib/libc.so.6 #14 0x00000000004fa9d1 in _start () Tested revisions: r168785 - crash 4.5 r168785 - OK 4.4 r168785 - OK