------- Comment #8 from jsm28 at gcc dot gnu dot org  2009-04-07 23:46 -------
The expression is indeed not an integer constant expression and so not
valid for a case label in ISO C.  But I'll look at restricting the error
in this case to a pedwarn-if-pedantic if the case label folds to an integer
constant but is not an integer constant expression, to allow this code
to continue to work.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jsm28 at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-04-02 15:38:08         |2009-04-07 23:46:13
               date|                            |


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

Reply via email to