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

vector<int> bug?


Has anyone seen errors like those below, when using vector<int>?  Is this a
known problem?  I'm running egcs-1.0.1 with GNU AS on HP-UX B.10.20.

I'll try to isolate the problem further and post some code, if it's not a
known bug. For what it's worth, the code seems to compile fine under gcc
2.7.2.3. Thanks!
-Ted

eg++  -pipe -O0 -fno-exceptions -fno-rtti   -Wall -Wno-return-type
-Wno-uninitia
lized   -I../libGAWUtil-src -I../libGAWRNG-src
-I../../unix/src/unix-libGAWUtil-
src -I../libHDF-src -I.     -c CanonGABlockDivCollector.cc -o
CanonGABlockDivCol
lector.o
/s/users/streak/local/egcs-1.0.1/include/g++/stl_vector.h:171: no type
named `it
erator_category' in `int'
/s/users/streak/local/egcs-1.0.1/include/g++/stl_vector.h:171: no type
named `va
lue_type' in `int'
/s/users/streak/local/egcs-1.0.1/include/g++/stl_vector.h:171: no type
named `di
fference_type' in `int'
/s/users/streak/local/egcs-1.0.1/include/g++/stl_vector.h:171: no type
named `po
inter' in `int'
/s/users/streak/local/egcs-1.0.1/include/g++/stl_vector.h:171: no type
named `re
ference' in `int'
/s/users/streak/local/egcs-1.0.1/include/g++/stl_iterator.h: In function
`{error
} iterator_category<int>(const int &)':
/s/users/streak/local/egcs-1.0.1/include/g++/stl_iterator.h:126:
return-type `{e
rror}' is an incomplete type
/s/users/streak/local/egcs-1.0.1/include/g++/stl_iterator.h:126: confused
by ear
lier errors, bailing out
make: *** [CanonGABlockDivCollector.o] Error 1

--
Ted Belding                               Ted.Belding@umich.edu
University of Michigan Program for the Study of Complex Systems
http://www-personal.umich.edu/~streak/




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