This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44094] New: case xxx statement does not recognize const int value
- From: "socketpair at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2010 10:54:46 -0000
- Subject: [Bug c/44094] New: case xxx statement does not recognize const int value
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
switch(xxx)
{
case *(const int* const)"abc":
break;
}
does not get compiled. saying:
error: case label does not reduce to an integer constant
I think it is the bug.
--
Summary: case xxx statement does not recognize const int value
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: socketpair at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44094