https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111330
--- Comment #8 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 55880 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55880&action=edit Proposed fix v3 Here is v2 together with the -Wcase-enum switch implemented (and related fixes). I'll git commit v2 and separately v3 on master and back port to gcc-13.