https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90398
Bug ID: 90398 Summary: Segmentation fault when using [[assert]] and -fno-exception Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: moussu.robin at pm dot me Target Milestone: --- Reproduce error with https://godbolt.org/z/cjlS79 gcc version: 9.0.1 (concept branch) The following code, when compiled with -std=c++2a -O3 -fno-exceptions has a segmentation fault ``` void foo() { [[assert: true]] // same thing with false, and if using a variable } ``` <source>: In function 'void foo()': <source>:3:17: internal compiler error: Segmentation fault 3 | [[assert: true]] | ^ Note: it may be related with that bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90396