This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81718

Eric Gallager <egallager at gcc dot gnu.org> 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 <egallager at gcc dot gnu.org> ---
Confirmed, backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]