------- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-05 10:35 ------- Confirmed. 2.95.4 only (incorrectly) warned about an out-of-range case value:
/space/rguenther/install/gcc-2.95/bin/g++ -S t.C t.C: In function `void foo(bool)': t.C:5: warning: case value out of range -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |rejects-valid Known to fail| |3.3.6 Known to work| |2.95.4 Last reconfirmed|0000-00-00 00:00:00 |2009-03-05 10:35:56 date| | Summary|Incorrectly rejects |[4.2/4.3/4.4 Regression] |switch((unsigned |Incorrectly rejects |int)boolvar) |switch((unsigned | |int)boolvar) Target Milestone|--- |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39371