https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121679
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2025-08-26 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Ok, I see the issue. DSE is not removing: _4 = (int) _10; Which does not allow the removal of: _10 = std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>::operator() (&gen32); Let me see if I can come up with a simple example.