------- Comment #2 from rguenth at gcc dot gnu dot org  2008-02-15 09:40 -------
Either you want

struct s {
   int i;
   enum { x } foo;
}a;

and case a.foo:  which is indeed not a integral cosntant expression or you
simply want

case x:

which is what of course works.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

Reply via email to