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: PATCH for: gcc/libstdc++-v3/include/bits/stl_vector.h


> What Andrew says is correct; please write a ChangeLog entry and send
> patches to libstdc++@gcc.gnu.org for approval.  This patch can go in.
> One other question:

Ok.

> > In file included from
> > /home/vadve/lattner/local/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/vector:71,
> >                  from testing.cpp:1:
>
> How is vector being used in testing.cpp?  I'm worried that this bug has
> escaped the libstdc++ testsuite.

Trivially:
#include <vector>

int test(int X) {
  std::vector<int> v;
  v.push_back(X);
}

Of course, it's dying on Line #1, which is the #include.

In fact, I'm having TONS of problems building libstdc++.  When trying to
build libstdc++-v3/src/codecvt.cc, I get lots of nasty errors like:

/home/vadve/lattner/cvs/gcc-3.4-x86/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/c++locale.h:76:
"there are no arguments to `strlen' that depend on a template parameter,
so a declaration of `strlen' must be available"

similarly for malloc, strcpy, free, ...

Should these all be prefixed with ::'s?  If so, how does this work for
anyone?

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/



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