https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87779
Bug ID: 87779 Summary: Extremely large expression causes segfault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 326374 at danwolff dot se Target Milestone: --- Created attachment 44915 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44915&action=edit example.c - C code that causes a segfault $ gcc --version gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Copyright [...] $ gcc example.c gcc: internal compiler error: Segmentation fault (program cc1) Please submit [...] $ cat example.c #include<stdio.h> int main(void) { int x = !!![one megabyte of exclamation marks]!!!1; printf("%d", x); return 0; } ---- The same error occurs for the corresponding g++ command. (I haven't come across this problem in the real world - I was just playing around.)