https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103539
Bug ID: 103539 Summary: [C++23] P2324 - Labels at the end of compound statements Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- https://wg21.link/P2324 void foo(void) { first: // #1 allowed in C++, now also allowed in C int x; second: // #2 allowed in both C++ and C x = 1; last: // #3 not allowed in C++, but now allowed in C } This proposal makes #3 OK.