https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc 12 defaults to c++17. I have not looked but I suspect that is the difference.
pinskia at gcc dot gnu.org via Gcc-bugs Sat, 29 Jan 2022 09:11:44 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc 12 defaults to c++17. I have not looked but I suspect that is the difference.