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]

Re: [Proposed binutils PATCH] Re: Diagnosing an intricate C++ problem


>>>>> Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

 > Yes (and sorry that it took that long): My production stuff linked
 > successfully, but produced tons of warnings.

 > Here is a minimal test case

 > ---- cut: x.cc ----
 > #include <string>
 > #include <vector>

 > main() {
 >     vector<string> w;

 >     w.push_back("Hello");
 >     }
 > ---- cut: x.cc----

 > for which a simple `g++ x.cc` generates the following warnings:

Well, of course it does.  You're compiling it with different flags than
were used to build libstdc++, so the generated code is different.  That's
why this feature is pretty useless for code.

Jason

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