https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97846
Bug ID: 97846 Summary: No diagnostic for identifier label in constexpr gunction Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cgnitash at gmail dot com Target Milestone: --- Reproduced from https://stackoverflow.com/questions/64852653 gcc fails to diagnose the use of an identifier label in a constexpr function: constexpr void f() { x: ; } clang does diagnose this violation. Here's an online demo https://godbolt.org/z/1rjjhv