This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14172] New: g++ should ignore warnings in STL headers
- From: "tneumann at pi3 dot informatik dot uni-mannheim dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2004 09:54:28 -0000
- Subject: [Bug c++/14172] New: g++ should ignore warnings in STL headers
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Some warning options trigger warnings in standard C++ headers, rendering -Werror
unusable. This can be seen with a simple example:
#include <list>
int main()
{
std::list<int> foo;
}
When compiling with g++ -Weffc++ -Werror foo.cpp a lot of warnings about STL
classes are emitted.
While the gcc manual already mentions that -Weffc++ could produce spurious
warnings, the same problems occurs with -Winline (I can try to produce a minimal
test case if required). I think the compiler should ignore warnings in these
files, as the user cannot fix them.
--
Summary: g++ should ignore warnings in STL headers
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tneumann at pi3 dot informatik dot uni-mannheim dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14172