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

            Bug ID: 87961
           Summary: crash at goto label inside sizeof
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugvelesevich at gmail dot com
  Target Milestone: ---

source.cpp:
int main() {
    sizeof(({M:0;}));
    goto M;
}
output:
In function ‘int main()’:
<source>:1:5: internal compiler error: Segmentation fault
 int main() {
     ^~~~


Code is a little strange... clang gets sigsegv too :)

Reply via email to