This is the mail archive of the gcc-patches@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]

Re: [v3] libstdc++/12854


Zack Weinberg <zack@codesourcery.com> writes:

| Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
| > | Using -Weffc++ with libstdc++ without these patches is pretty much
| > | impossible.
| >
| > The compiler should not be warning in system headers in the first
| > place.  Something is going wrong there.
| 
| It's probably a case of the warning issues when the objectionable
| construct is *used*, outside the system header?

A simple case is when user writes this

     #include <vector>

     int main() { std::vector<int> v; }

-Weffc++ spits out nonsensical remarks in what is consdered system
 headers. 

-- Gaby


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