------- Comment #4 from rguenth at gcc dot gnu dot org  2009-06-04 10:05 -------
GCC 3.3 is very old and no longer maintained.

> g++-4.4 -o t t.C
t.C: In function ‘int main()’:
t.C:9: warning: case label value exceeds maximum value for type

which seems indeed bogus (but hints at what happens).

The C frontend correctly dispatches to the default case but still warns:

> gcc-4.4 -o t t.c -Wall
t.c: In function ‘main’:
t.c:9: warning: case label value exceeds maximum value for type
t.c:16: warning: control reaches end of non-void function


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|x86                         |
   GCC host triplet|x86                         |
 GCC target triplet|x86                         |
           Keywords|                            |diagnostic, wrong-code
      Known to fail|                            |3.3.6 4.3.3 4.4.0 4.5.0
      Known to work|                            |2.95.4
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-04 10:05:43
               date|                            |
            Version|unknown                     |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40335

Reply via email to