https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103746
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Summary|[12 Regression] Rejected |[12 Regression] GCC 12 |code "call to |rejects code on "call to |non-‘constexpr’ function |non-‘constexpr’ function |‘glsl::vec3& |‘glsl::vec3& |glsl::vec3::operator=(glsl: |glsl::vec3::operator=(glsl: |:vec3&&)’" since |:vec3&&)’" while gcc 11 and |r12-5256-g37326651b439bac5 |clang accepts it Status|NEW |UNCONFIRMED --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This code is definitely not valid but -fimplicit-constexpr will allow it to compile already.