This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50645] old issue - deprecated conversion from string to char*
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Oct 2011 01:10:45 +0000
- Subject: [Bug c/50645] old issue - deprecated conversion from string to char*
- Auto-submitted: auto-generated
- References: <bug-50645-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50645
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-10-07
Ever Confirmed|0 |1
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-07 01:10:45 UTC ---
two points:
1) the component for this bug should surely be c++, since the "deprecated
conversion" warning is only issued by the C++ front end, the C front end says
passing argument 1 of âmyfunctionâ discards âconstâ qualifier from pointer
target type
and even then, only with -Wwrite-strings, which is not enabled by -Wall -Wextra
2) unlike the PR's summary, the warning says "deprecated conversion from string
CONSTANT to 'char*'" (emphasis mine) which should be a pretty big clue that
it's warning you about a real problem.
I can't see any good reason this PR isn't INVALID, but will go for WAITING in
case you have a better case to make for changing the current behaviour, which
is entirely consistent with the C++ standard.