https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103684
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#150 [Moved to DR at the November, 2016 meeting as paper P0522R0.] [Picked up by evolution group at October 2002 meeting.] paper P0522R0: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0522r0.html Anyways this used to be a GCC extension which was removed and then added back as part of the C++ standard. GCC is correct here in C++17 and above.