On 09/11/2013 12:20 PM, Paolo Carlini wrote:
Hi,
On 09/11/2013 07:40 PM, domi...@lps.ens.fr wrote:
The failures are (at least on x86_64-apple-darwin10):
/opt/gcc/work/gcc/testsuite/g++.dg/torture/pr58380.C: In static member
function 'static iplugin_factory& selection_to_stdout::get_factory()':
/opt/gcc/work/gcc/testsuite/g++.dg/torture/pr58380.C:167:79: warning:
deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/opt/gcc/work/gcc/testsuite/g++.dg/torture/pr58380.C:167:79: warning:
deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Yeah, everywhere.
By the way, the warning is definitely correct, thus either tweak that
basic_string constructor to take a const char* (assuming the testcase is
still fine as reproducer), or add a -w, or some other simple tweak will do.
-w is the right thing to do, warnings or the lack thereof aren't
important for what that test is detecting. I'll fix it up momentarily.
jeff