https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115869
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |tree-optimization --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- But this is definitely not a "c++" bug. The tree outputted by the C++ FE is correct (it's unchanged from -O2 to -O3). Something goes wrong in a tree optimize pass and 265t.optimized is incorrect.