https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98549
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The warning often warns on dead code. But even if the warning is right, that doesn't make it ice-on-invalid-code. The code may have UB at runtime, but that UB doesn't need to be ever triggered when running the program. ice-on-invalid-code stands for code that should be rejected (diagnosed with errors, not warnings), but instead of giving the error we ICE on it instead. That is not the case here.