https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106646
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Thanks, I can look into that for C++. I notice that with your patch we say "#warning before C2X is a GCC extension" even when compiling with cc1plus; I suppose the C2X message should be guarded by CPP_OPTION (pfile, cplusplus).