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: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- 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-gnats at gcc dot gnu dot org>
- Date: Fri, 20 Dec 2002 20:20:23 +0000 (GMT)
- Subject: Re: c/9025: GNU C compiler does not honour 'const' type qualifier
On 20 Dec 2002 ehrhardt@mathematik.uni-ulm.de wrote:
> 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
No, it should be (and is) an error at least with -pedantic-errors, which
is what you need to get an error for everything the standard requires a
diagnostic for. However, I don't see any point in this not being a hard
error unconditionally and it's one case that is frequently requested to be
such.
--
Joseph S. Myers
jsm28@cam.ac.uk