This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5546: Bad "const" verification
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jbach1 at caramail dot com, nobody at gcc dot gnu dot org
- Date: 26 Apr 2002 16:06:57 -0000
- Subject: Re: c++/5546: Bad "const" verification
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jbach1 at caramail dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Bad "const" verification
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Apr 26 09:06:57 2002
State-Changed-Why:
you need to add -W, and then it says,
nathan@manao:171>g++ -c 5546.cc
5546.cc: In function `int main(int, char**)':
5546.cc:8: warning: deprecated conversion from string constant to `char*'
note, you've attempted to modify a constant object, and
therefore entered undefined teritory.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5546