https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118971
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- GCC gives a diagnostic, which is all the standard requires. If you use -pedantic-errors then it's rejected with an error. Please don't keep reporting bugs like this and PR 118969, the standard only requires a diagnostic, and GCC gives a diagnostic.