http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51411
Bug #: 51411 Summary: ICE: in function_and_variable_visibility, at ipa.c:835 with -O -fgnu-tm and overriding virtual transaction_safe function Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: patrick.marl...@gmail.com Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 25987 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25987 reduced testcase Compiler output: $ gcc -O -fgnu-tm testcase.C testcase.C:9:2: internal compiler error: in function_and_variable_visibility, at ipa.c:835 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=0x142aa48 "/mnt/svn/gcc-trunk/gcc/ipa.c", line=835, function=0x142ac40 "function_and_variable_visibility") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898 #1 0x0000000000a041b7 in function_and_variable_visibility (whole_program=false) at /mnt/svn/gcc-trunk/gcc/ipa.c:834 #2 0x0000000000a044d6 in whole_program_function_and_variable_visibility () at /mnt/svn/gcc-trunk/gcc/ipa.c:999 #3 0x0000000000a88845 in execute_one_pass (pass=0x198b720) at /mnt/svn/gcc-trunk/gcc/passes.c:2074 #4 0x0000000000a8900a in execute_ipa_pass_list (pass=0x198b720) at /mnt/svn/gcc-trunk/gcc/passes.c:2441 #5 0x000000000083fc90 in ipa_passes () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2076 #6 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2147 #7 0x00000000008400ca in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327 #8 0x000000000066100b in cp_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:4050 #9 0x0000000000b7d994 in compile_file (argc=15, argv=0x7fffffffdae8) at /mnt/svn/gcc-trunk/gcc/toplev.c:573 #10 do_compile (argc=15, argv=0x7fffffffdae8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1928 #11 toplev_main (argc=15, argv=0x7fffffffdae8) at /mnt/svn/gcc-trunk/gcc/toplev.c:2004 #12 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6 #13 0x0000000000584119 in _start () Tested revisions: r181984 - crash