https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114181 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also please provide a full testcase to show what you are doing because this code snippet is not even valid c++.