https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111608
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |13.2.0, 14.0, 7.5.0 Keywords| |rejects-valid Last reconfirmed| |2023-09-27 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- clang accepts this. Note you can use -fpermissive to demote the error to a warning.