https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63860
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|5.2 |6.0 --- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Should be fixed on trunk by r224153 I don't see any point fixing it for 5.2 since G++ and Clang already accept the ill-formed code, and aren't going to suddenly stop doing so.