http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53756
Bug #: 53756 Summary: ICE: in gen_type_die_with_usage, at dwarf2out.c:18774 with -g and operator auto () Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 27691 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27691 reduced testcase Compiler output: $ gcc -std=c++1y -g testcase.C testcase.C:1:8: internal compiler error: in gen_type_die_with_usage, at dwarf2out.c:18774 struct A ^ 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=0x139e8a0 "/mnt/svn/gcc-trunk/gcc/dwarf2out.c", line=18774, function=0x139c740 "gen_type_die_with_usage") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:1010 #1 0x00000000008bc1da in gen_type_die_with_usage (type=0x7ffff6c29000, context_die=0x7ffff6ad4050, usage=DINFO_USAGE_DIR_USE) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18774 #2 0x00000000008b9796 in gen_decl_die (decl=0x7ffff6c17500, origin=0x7ffff6c15dc8, context_die=0x7ffff6ad4050) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:19275 #3 0x00000000008bb105 in gen_member_die (context_die=0x7ffff6ad4050, type=0x7ffff6c15dc8) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18334 #4 gen_struct_or_union_type_die (usage=<optimized out>, context_die=<optimized out>, type=0x7ffff6c15dc8) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18407 #5 gen_tagged_type_die (usage=<optimized out>, context_die=0x7ffff6ad4000, type=0x7ffff6c15dc8) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18597 #6 gen_tagged_type_die (type=0x7ffff6c15dc8, context_die=<optimized out>, usage=<optimized out>) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18540 #7 0x00000000008bc43d in gen_type_die_with_usage (type=0x7ffff6c15dc8, context_die=0x7ffff6ad4000, usage=DINFO_USAGE_DIR_USE) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18744 #8 0x00000000008b99de in gen_decl_die (decl=0x7ffff6c12958, origin=<optimized out>, context_die=0x7ffff6ad4000) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:19314 #9 0x0000000000aa03d9 in rest_of_type_compilation (type=0x7ffff6c15dc8, toplev=1) at /mnt/svn/gcc-trunk/gcc/passes.c:219 #10 0x00000000006611b6 in finish_struct_1 (t=0x7ffff6c15dc8) at /mnt/svn/gcc-trunk/gcc/cp/class.c:6180 #11 0x0000000000662aed in finish_struct (t=0x7ffff6c15dc8, attributes=0x0) at /mnt/svn/gcc-trunk/gcc/cp/class.c:6329 #12 0x000000000068c184 in cp_parser_class_specifier_1 (parser=0x7ffff6c27948) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:18031 #13 0x000000000068eaa7 in cp_parser_class_specifier (parser=0x7ffff6c27948) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:18234 #14 cp_parser_type_specifier (parser=0x7ffff6c27948, flags=<optimized out>, decl_specs=0x7fffffffd3e0, is_declaration=<optimized out>, declares_class_or_enum=0x7fffffffd35c, is_cv_qualifier=<optimized out>) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:13386 #15 0x000000000069ddbe in cp_parser_decl_specifier_seq (parser=0x7ffff6c27948, flags=1, decl_specs=0x7fffffffd3e0, declares_class_or_enum=0x7fffffffd3dc) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:10730 #16 0x00000000006a670a in cp_parser_simple_declaration (parser=0x7ffff6c27948, function_definition_allowed_p=true, maybe_range_for_decl=0x0) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:10373 #17 0x00000000006907c8 in cp_parser_block_declaration (statement_p=false, parser=0x7ffff6c27948) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:10322 #18 cp_parser_block_declaration (parser=0x7ffff6c27948, statement_p=<optimized out>) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:10247 #19 0x00000000006b139c in cp_parser_declaration (parser=0x7ffff6c27948) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:10218 #20 0x00000000006b1698 in cp_parser_declaration_seq_opt (parser=0x7ffff6c27948) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:10104 #21 0x00000000006b1da3 in cp_parser_translation_unit (parser=0x7ffff6c27948) at /mnt/svn/gcc-trunk/gcc/cp/parser.c:3754 #22 c_parse_file () at /mnt/svn/gcc-trunk/gcc/cp/parser.c:27578 #23 0x00000000007b2e95 in c_common_parse_file () at /mnt/svn/gcc-trunk/gcc/c-family/c-opts.c:1137 #24 0x0000000000b8d58c in compile_file () at /mnt/svn/gcc-trunk/gcc/toplev.c:550 #25 0x0000000000b8f178 in do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1867 #26 toplev_main (argc=15, argv=0x7fffffffd708) at /mnt/svn/gcc-trunk/gcc/toplev.c:1943 #27 0x00007ffff6f052ad in __libc_start_main () from /lib64/libc.so.6 #28 0x00000000005927f1 in _start () Tested revisions: r188906 - crash