https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111810
Bug ID: 111810 Summary: GCC-14 segfault: error: expected declaration or statement at end of input Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- When compile this program with `gcc-14 -O0`, gcc crashes: ``` void = {0}; void uninliner_1() { {} inline __RTL test(void) { uninliner_1(); ``` This crash can be verified at https://godbolt.org/z/rc9oW43EE The full stack backtrace is pasted below: <source>:1:6: error: expected identifier or '(' before '=' token 1 | void = {0}; | ^ <source>: In function 'uninliner_1': <source>:4:14: warning: return type defaults to 'int' [-Wimplicit-int] 4 | inline __RTL test(void) { | ^~~~ <source>: In function 'test': <source>:5:3: error: no closing brace 5 | uninliner_1(); | ^~~~~~~~~~~ <source>: At top level: <source>:5:3: error: expected declaration or statement at end of input <source>:5:3: internal compiler error: Segmentation fault 0x22ff3ee internal_error(char const*, ...) ???:0 0xa2621e finish_function(unsigned int) ???:0 0xaa468d c_parse_file() ???:0 0xb17919 c_common_parse_file() ???:0 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. Compiler returned: 1