https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111758
Bug ID: 111758 Summary: #pragma region/endregion fails between if/else Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: domen.stangar at gmail dot com Target Milestone: --- #include <stdio.h> int main() { #pragma region test if(1){} #pragma endregion else{} } gcc 13.x fails with output <source>: In function 'main': <source>:7:5: error: 'else' without a previous 'if' 7 | else | ^~~~ Compiler returned: 1 while 12.x works fine.