c/9025: GNU C compiler does not honour 'const' type qualifier
ehrhardt@mathematik.uni-ulm.de
ehrhardt@mathematik.uni-ulm.de
Fri Dec 20 08:03:00 GMT 2002
Synopsis: GNU C compiler does not honour 'const' type qualifier
State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Fri Dec 20 08:03:53 2002
State-Changed-Why:
Confirmed. All versions that I checked issue a warning for the assignment
to a const value but this should be an error at least with std=c99 because
6.5.16[#2] requires a modifiable lvalue as the left operand of an assignment
and 6.3.2.1[#1] defines a modifiable lvalue as an lvalue that (among other
things) doesn't have a const qualified type.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9025
More information about the Gcc-prs
mailing list