This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/9025: GNU C compiler does not honour 'const' type qualifier


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]