public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105300] New: segfault from static_assert with user-defined string suffix argument
@ 2022-04-18  3:51 Jack at Applin dot US
  2022-04-19 14:11 ` [Bug c++/105300] " marxin at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jack at Applin dot US @ 2022-04-18  3:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105300
           Summary: segfault from static_assert with user-defined string
                    suffix argument
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Jack at Applin dot US
  Target Milestone: ---

Created attachment 52824
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52824&action=edit
preprocessed source to reproduce the error

$ cat bad.ii
void operator""_x(const char *, unsigned long);
static_assert(false, "foo"_x);
$ g++ bad.ii
bad.ii:2:15: internal compiler error: Segmentation fault
    2 | static_assert(false, "foo"_x);
      |               ^~~~~
0xb0c67e crash_signal
        ../../src/gcc/toplev.c:327
0x7fb38e75951f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7dd197 finish_static_assert(tree_node*, tree_node*, unsigned int, bool, bool)
        ../../src/gcc/cp/semantics.c:10134
0x15089c8 cp_parser_static_assert
        ../../src/gcc/cp/parser.c:15464
0xf9ed91 cp_parser_declaration
        ../../src/gcc/cp/parser.c:14164
0x149bba3 cp_parser_toplevel_declaration
        ../../src/gcc/cp/parser.c:14193
0x149bba3 cp_parser_translation_unit
        ../../src/gcc/cp/parser.c:4942
0x149bba3 c_parse_file()
        ../../src/gcc/cp/parser.c:45326
0x1489a5e c_common_parse_file()
        ../../src/gcc/c-family/c-opts.c:1218
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
$ g++ --version
g++ (Ubuntu 11.2.0-7ubuntu2) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

end of thread, other threads:[~2023-04-10  7:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18  3:51 [Bug c++/105300] New: segfault from static_assert with user-defined string suffix argument Jack at Applin dot US
2022-04-19 14:11 ` [Bug c++/105300] " marxin at gcc dot gnu.org
2022-04-19 17:17 ` marxin at gcc dot gnu.org
2022-11-03  0:21 ` [Bug c++/105300] [10/11/12/13 Regression] " pinskia at gcc dot gnu.org
2022-11-03  0:32 ` pinskia at gcc dot gnu.org
2022-11-11 20:39 ` mpolacek at gcc dot gnu.org
2022-12-20 13:39 ` rguenth at gcc dot gnu.org
2023-01-26 15:08 ` cvs-commit at gcc dot gnu.org
2023-01-26 15:21 ` [Bug c++/105300] [10/11/12 " mpolacek at gcc dot gnu.org
2023-04-10  7:24 ` jakub at gcc dot gnu.org

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