https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I disagree, removing static consts is an optimization, if you tell the compiler not to optimize, it doesn't perform the optimizations.