https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61638
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jack Adrian Zappa from comment #9) > > Suggest fix is to either: > > 1. Change the phase where this warning/error/ignored is tested so that the > #pragma GCC diagnostic is honoured or That is fixed on the trunk for GCC 13 (by r13-1544-ge46f4d7430c52104657916) for the C++ front-end, it was already working for the C front-end.