public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53756] New: ICE: in gen_type_die_with_usage, at dwarf2out.c:18774 with -g and operator auto ()
@ 2012-06-23 14:09 zsojka at seznam dot cz
  2012-06-25  8:10 ` [Bug c++/53756] [C++1y] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: zsojka at seznam dot cz @ 2012-06-23 14:09 UTC (permalink / raw)
  To: gcc-bugs

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 <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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-06-29  8:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-23 14:09 [Bug c++/53756] New: ICE: in gen_type_die_with_usage, at dwarf2out.c:18774 with -g and operator auto () zsojka at seznam dot cz
2012-06-25  8:10 ` [Bug c++/53756] [C++1y] " rguenth at gcc dot gnu.org
2013-08-02 17:03 ` paolo.carlini at oracle dot com
2013-08-03 20:47 ` paolo.carlini at oracle dot com
2013-08-22 10:31 ` paolo.carlini at oracle dot com
2013-10-05 14:12 ` tim at klingt dot org
2013-11-23  1:27 ` jason at gcc dot gnu.org
2014-01-28 17:07 ` jason at gcc dot gnu.org
2014-01-28 17:08 ` jason at gcc dot gnu.org
2014-01-29 15:18 ` jakub at gcc dot gnu.org
2014-04-22 11:36 ` jakub at gcc dot gnu.org
2014-06-29  8:38 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).