[Bug c++/35205] Structure enum wrongly interpreted as a variable in switch case.
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Feb 15 09:41:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list