This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r218087 - in /trunk/gcc: cp/ChangeLog cp/typeck...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 26 Nov 2014 15:16:07 -0000
- Subject: r218087 - in /trunk/gcc: cp/ChangeLog cp/typeck...
Author: jason
Date: Wed Nov 26 15:16:07 2014
New Revision: 218087
URL: https://gcc.gnu.org/viewcvs?rev=218087&root=gcc&view=rev
Log:
Diagnose string constant conversion to char* in c++11 and above
as forbidden, not deprecated.
* typeck.c (string_conv_p): Do a pedwarn in c++11 and above,
change the diagnostic for the Wwrite-strings case for c++11 and above.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/g++.dg/warn/write-strings-default.C
trunk/gcc/testsuite/g++.dg/warn/write-strings.C
trunk/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
trunk/gcc/testsuite/g++.old-deja/g++.brendan/template17.C
trunk/gcc/testsuite/g++.old-deja/g++.law/temps1.C
trunk/gcc/testsuite/g++.old-deja/g++.martin/typedef2.C