c/2534
jsm28@gcc.gnu.org
jsm28@gcc.gnu.org
Wed Apr 11 09:06:00 GMT 2001
The following reply was made to PR c/2534; it has been noted by GNATS.
From: jsm28@gcc.gnu.org
To: bug1@optushome.com.au, gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk,
nobody@gcc.gnu.org
Cc:
Subject: Re: c/2534
Date: 11 Apr 2001 15:59:25 -0000
Synopsis: const int variables in case label
State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Wed Apr 11 08:59:25 2001
State-Changed-Why:
const int variables are not integer constant expressions;
see ISO/IEC 9899:1999 (E) subclause 6.6 paragraph 6 for
the definition. In C, use defines or enums, or use C++
if you want C++ handling of const int variables.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2534&database=gcc
More information about the Gcc-prs
mailing list