This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14172] New: g++ should ignore warnings in STL headers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]