https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102606
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Or VLA. Anyway, even at -O0 we can optimize away some if (0)s, but we need assurance that there are no labels in there and that the code really dead. So, e.g. if constexpr (0) can be optimized away because there is a language guarantee that one can't jump into those bodies.