[Bug c++/81718] g++ segfault in tsubst_copy_and_build when creating type alias

2018-12-01 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81718

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||mpolacek at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #3 from Marek Polacek  ---
Doesn't ICE anymore since r254239.  The testcases are very similar so I think
we don't have to add this one.

[Bug c++/81718] g++ segfault in tsubst_copy_and_build when creating type alias

2018-08-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81718

--- Comment #2 from Eric Gallager  ---
(In reply to Eric Gallager from comment #1)
> 
> I would have to rebuild my gcc with debug info to get a better backtrace.

So I tried doing that but it crashed my debugger; I might need to open a
separate bug for that...

[Bug c++/81718] g++ segfault in tsubst_copy_and_build when creating type alias

2017-08-11 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81718

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-08-11
 CC||egallager at gcc dot gnu.org
Summary|g++ segfault when creating  |g++ segfault in
   |type alias  |tsubst_copy_and_build when
   ||creating type alias
 Ever confirmed|0   |1

--- Comment #1 from Eric Gallager  ---
Confirmed, backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x
0x0016b32c in tsubst_copy_and_build ()
(gdb) bt
#0  0x0016b32c in tsubst_copy_and_build ()
#1  0x00152b11 in tsubst_expr ()
#2  0x0015e1e6 in tsubst_template_arg ()
#3  0x0015e3c8 in tsubst_template_args ()
#4  0x0015ca0b in tsubst ()
#5  0x0015cfe3 in tsubst ()
#6  0x00173898 in lookup_template_class ()
#7  0x0019aa2e in finish_template_type ()
#8  0x00118da8 in cp_parser_template_id ()
#9  0x00118f18 in cp_parser_class_name ()
#10 0x00125fca in cp_parser_nested_name_specifier_opt ()
#11 0x00123af7 in cp_parser_simple_type_specifier ()
#12 0x0011fbe0 in cp_parser_type_specifier ()
#13 0x00121a60 in cp_parser_type_specifier_seq ()
#14 0x00121b27 in cp_parser_type_id_1 ()
#15 0x00122def in cp_parser_alias_declaration ()
#16 0x00133177 in cp_parser_template_declaration_after_parameters ()
#17 0x00133873 in cp_parser_template_declaration_after_export ()
#18 0x00139eba in cp_parser_declaration ()
#19 0x0013a23a in cp_parser_declaration_seq_opt ()
#20 0x0013a52e in c_parse_file ()
#21 0x00238f6b in c_common_parse_file ()
#22 0x00b16425 in compile_file ()
#23 0x01a9e35e in toplev::main ()
#24 0x01a9fa34 in main ()
(gdb)

I would have to rebuild my gcc with debug info to get a better backtrace.