This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81514] New: g++.dg/lookup/missing-std-include-2.C FAILs on Solaris
- From: "ro at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Jul 2017 15:28:58 +0000
- Subject: [Bug c++/81514] New: g++.dg/lookup/missing-std-include-2.C FAILs on Solaris
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81514
Bug ID: 81514
Summary: g++.dg/lookup/missing-std-include-2.C FAILs on Solaris
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: dmalcolm at gcc dot gnu.org
Target Milestone: ---
Target: *-*-solaris2.*
The new g++.dg/lookup/missing-std-include-2.C testcase FAILs on Solaris:
FAIL: g++.dg/lookup/missing-std-include-2.C -std=gnu++11 (test for warnings,
line 13)
FAIL: g++.dg/lookup/missing-std-include-2.C -std=gnu++11 (test for warnings,
line 24)
FAIL: g++.dg/lookup/missing-std-include-2.C -std=gnu++11 expected multiline
pattern lines 45-53 not found: "\\s*@@ -7,6 \\+7,8 @@.*\\n directives\\)\\.
\\*/.*\\n .*\\n #include <stdio\\.h>.*\\n\\+#include <string>.*\\n\\+#include
<iostream>.*\\n .*\\n void test \\(void\\).*\\n \\{.*\\n"
FAIL: g++.dg/lookup/missing-std-include-2.C -std=gnu++11 (test for excess
errors)
(32 and 64-bit, sparc and x86).
The output for l.13 is
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C:
In function 'void test()':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C:13:8:
error: 'string' is not a member of 'std'
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C:13:8:
note: suggested alternative: 'sprintf'
while Linux has the expected
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C:
In function 'void test()':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C:13:8:
error: 'string' is not a member of 'std'
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/missing-std-include-2.C:13:8:
note: 'std::string' is defined in header '<string>'; did you forget to
'#include <string>'?
Rainer