[Bug c/27126] -Wswitch-enums doesn't detect impossible cases in switch()

2006-04-12 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-13 01:27 --- *** This bug has been marked as a duplicate of 23577 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/27126] -Wswitch-enums doesn't detect impossible cases in switch()

2006-04-12 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-04-12 10:17 --- Confirmed. But this is unlikely to be fixed as it would require moving the diagnostic to the middle-end where this information is available. And diagosticts from the middle-end are notoriously frowned upon. --