From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24786 invoked by alias); 23 Jun 2012 14:09:13 -0000 Received: (qmail 24776 invoked by uid 22791); 23 Jun 2012 14:09:12 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 23 Jun 2012 14:08:57 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53756] New: ICE: in gen_type_die_with_usage, at dwarf2out.c:18774 with -g and operator auto () Date: Sat, 23 Jun 2012 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg01566.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: zsojka@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 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=, context_die=, type=0x7ffff6c15dc8) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18407 #5 gen_tagged_type_die (usage=, context_die=0x7ffff6ad4000, type=0x7ffff6c15dc8) at /mnt/svn/gcc-trunk/gcc/dwarf2out.c:18597 #6 gen_tagged_type_die (type=0x7ffff6c15dc8, context_die=, usage=) 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=, 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=, decl_specs=0x7fffffffd3e0, is_declaration=, declares_class_or_enum=0x7fffffffd35c, is_cv_qualifier=) 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=) 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