This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9025: GNU C compiler does not honour 'const' type qualifier
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: d dot petropoulos at encode-sec dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 20 Dec 2002 16:03:54 -0000
- Subject: Re: c/9025: GNU C compiler does not honour 'const' type qualifier
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de, d dot petropoulos at encode-sec dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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