From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4316 invoked by alias); 20 Dec 2002 16:03:54 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4297 invoked by uid 61); 20 Dec 2002 16:03:54 -0000 Date: Fri, 20 Dec 2002 08:03:00 -0000 Message-ID: <20021220160354.4296.qmail@sources.redhat.com> To: d.petropoulos@encode-sec.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, d.petropoulos@encode-sec.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/9025: GNU C compiler does not honour 'const' type qualifier X-SW-Source: 2002-12/txt/msg01101.txt.bz2 List-Id: 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