c/4142: gcc compiles C code with assignments to const variables
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Sun Feb 24 10:06:00 GMT 2002
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
More information about the Gcc-bugs
mailing list