https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109653
Bug ID: 109653 Summary: [[clang::fallthrough]] recognised up to g++ v12 not not g++ v13 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at aitchison dot me.uk Target Milestone: --- Created attachment 54945 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54945&action=edit Test alternate spelling clang::fallthrough g++ v12 and earlier ignore the line [[clang::fallthrough]]; but v13 complains: warning: attributes at the beginning of statement are ignored [-Wattributes] This is a common alternative spelling of [[gnu::fallthrough]]; and [[fallthrough]]; so it is a pity that when g++ supports the feature in its default mode (ie without specifying a --std) it starts objecting to code which on some other compilers enables the functionality.