https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66160
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- G++, Clang and EDG all reject both testcases for the same reason, so it looks like the code is simply invalid and previous versions of G++ incorrectly accepted it.