This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
vector _IterCategory undeclared
- To: gcc-bugs at gcc dot gnu dot org, Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Subject: vector _IterCategory undeclared
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Fri, 06 Jul 2001 12:09:44 +0100
- Organization: Codesourcery LLC
Hi,
The attached test case compiles with 3.0, but fails on the current
mainline with,
nathan@uha:3>./X -c vec.C
/home/nathan/egcs/devel/egcs/libstdc++-v3/include/bits/stl_vector.h: In member function `void std::vector<_Tp, _Alloc>::_M_initialize_aux(_InputIterator, _InputIterator, _Bool<false>) [with _InputIterator = std::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, _Tp = int, _Alloc = std::allocator<int>]':
/home/nathan/egcs/devel/egcs/libstdc++-v3/include/bits/stl_vector.h:244: instantiated from `std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, typename std::_Vector_base<_Tp, _Alloc>::allocator_type&) [with _InputIterator = std::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, _Tp = int, _Alloc = std::allocator<int>]'
vec.C:9: instantiated from here
/home/nathan/egcs/devel/egcs/libstdc++-v3/include/bits/stl_vector.h:260: `_IterCategory' undeclared (first use this function)
/home/nathan/egcs/devel/egcs/libstdc++-v3/include/bits/stl_vector.h:260: (Each undeclared identifier is reported only once for each function it appears in.)
(X is a little script to supply suitable -I thingies)
The test is distilled from some test code Gerald sent me [the offending
line is dltypes.h:694].
Is this a bug in the test case, or a bug in the library?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
vec.C