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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-05-27
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
[apinski@xeond2 gcc]$ ./cc1plus t.cc
 constexpr bool foo(const char*, char*, long int) constexpr bool foo(const
char*, char*, unsigned int) constexpr bool foo(char, char, long int) constexpr
bool foo(char, char, unsigned int)
t.cc: At global scope:
t.cc:7:18: internal compiler error: Segmentation fault
    7 | static_assert(foo((char *)nullptr, nullptr, 0));
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x134bdbf crash_signal
        /home/apinski/src/upstream-gcc-match/gcc/gcc/toplev.cc:319
0xa49a4e compare_ics
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/call.cc:12124
0xa5736a joust
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/call.cc:12958
0xa58ee8 tourney
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/call.cc:13476
0xa59068 perform_overload_resolution
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/call.cc:5006
0xa5db12 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/call.cc:5098
0xcadf7d finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/semantics.cc:3136
0xc0c2bb cp_parser_postfix_expression
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:8191
0xbe74f0 cp_parser_binary_expression
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:10411
0xbe82b4 cp_parser_assignment_expression
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:10755
0xbe93fd cp_parser_constant_expression
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:11045
0xbeb84b cp_parser_static_assert
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:17096
0xc32672 cp_parser_declaration
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:15706
0xc336fa cp_parser_toplevel_declaration
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:15727
0xc336fa cp_parser_translation_unit
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:5297
0xc336fa c_parse_file()
        /home/apinski/src/upstream-gcc-match/gcc/gcc/cp/parser.cc:51518
0xd81961 c_common_parse_file()
        /home/apinski/src/upstream-gcc-match/gcc/gcc/c-family/c-opts.cc:1311
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to