https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84832
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-12 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- EDG also accepts the code. I'm confirming this as an accepts-invalid bug, but it's possible this is a defect in the standard instead and GCC and EDG are doing the right thing.