Diagnose string constant conversion to char* in c++11 and above as forbidden, not...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 26 Nov 2014 15:16:07 +0000 (17:16 +0200)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 26 Nov 2014 15:16:07 +0000 (10:16 -0500)
commitaaf176ca1896931ac8777c0fd527b0198032b38e
tree1d0719c39e7bc778963f5959e441ce9f55e4c8b9
parent8006f46bdd8be581f287ed7d1c2d204c608fb426
Diagnose string constant conversion to char* in c++11 and above as forbidden, not deprecated.

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.

From-SVN: r218087
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/warn/write-strings-default.C
gcc/testsuite/g++.dg/warn/write-strings.C
gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
gcc/testsuite/g++.old-deja/g++.brendan/template17.C
gcc/testsuite/g++.old-deja/g++.law/temps1.C
gcc/testsuite/g++.old-deja/g++.martin/typedef2.C