This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for: gcc/libstdc++-v3/include/bits/stl_vector.h
- From: Chris Lattner <sabre at nondot dot org>
- To: Phil Edwards <phil at jaj dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 11:46:33 -0500 (CDT)
- Subject: 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/