This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/4142: gcc compiles C code with assignments to const variables
- From: rodrigc at gcc dot gnu dot org
- To: RDahlsted at aol 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: 24 Feb 2002 17:29:10 -0000
- Subject: Re: c/4142: gcc compiles C code with assignments to const variables
- Reply-to: rodrigc at gcc dot gnu dot org, RDahlsted at aol 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: gcc compiles C code with assignments to const variables
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Feb 24 09:29:10 2002
State-Changed-Why:
Using g++, this will not compile.
If you use gcc, then use -pedantic-errors to treat the
warnings as errors which will prevent the code from compiling.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4142