https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112377
uecker at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-11-04 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from uecker at gcc dot gnu.org --- Confirmed. But this change would not be enough. The warning is implemented in the C front-end which which is separate from the C++ FE. Possibly, the code for the warning could be shared, but I do not know.