https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53181
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2019-02-11 00:00:00 |2021-8-4 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So this is dependent on which standard you use. For C++11 and C++14, trunk is still rejecting it. For C++17, starting in GCC 7, the code is accepted and is correct. C++20 on trunk accepts it. It would be interesting to see why GCC 7+ acts this way. (In reply to Martin Sebor from comment #5) > No change in GCC 9. Actually there was :).