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]

egcs-971114 stl problem: vector: no type named `iterator_category' in `int'


uname -a: SunOS zeal 5.5 Generic sun4u sparc SUNW,Ultra-1

c++ source
-----------------------------
#include <vector>

void f(void)
{
  vector<int> l(5, 0);
}
-----------------------------

/export/home/users/joseph/egcs-971114/bin/g++  -v -o b8.o -c b8.cc
Reading specs from
/export/home/users/joseph/egcs-971114/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.17/specs
gcc version egcs-2.90.17 971114 (gcc2-970802 experimental)

/export/home/users/joseph/egcs-971114/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.17/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=90 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__
-D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix
-Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__
-Acpu(sparc) -Amachine(sparc) b8.cc /var/tmp/cca005sy.ii
GNU CPP version egcs-2.90.17 971114 (gcc2-970802 experimental) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /export/home/users/joseph/egcs-971114/include/g++
 /usr/local/include
 /export/home/users/joseph/egcs-971114/sparc-sun-solaris2.5/include

/export/home/users/joseph/egcs-971114/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.17/include
 /usr/include
End of search list.

/export/home/users/joseph/egcs-971114/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.17/cc1plus
/var/tmp/cca005sy.ii -quiet -dumpbase b8.cc -version -o /var/tmp/cca005sy.s
GNU C++ version egcs-2.90.17 971114 (gcc2-970802 experimental)
(sparc-sun-solaris2.5) compiled by GNU C version egcs-2.90.16 971105
(gcc2-970802 experimental).
/export/home/users/joseph/egcs-971114/include/g++/stl_vector.h:113: no type
named `iterator_category' in `int'
/export/home/users/joseph/egcs-971114/include/g++/stl_vector.h:113: no type
named `value_type' in `int'
/export/home/users/joseph/egcs-971114/include/g++/stl_vector.h:113: no type
named `difference_type' in `int'
/export/home/users/joseph/egcs-971114/include/g++/stl_vector.h:113: no type
named `pointer' in `int'
/export/home/users/joseph/egcs-971114/include/g++/stl_vector.h:113: no type
named `reference' in `int'
/export/home/users/joseph/egcs-971114/include/g++/stl_iterator.h: In function
`{error} iterator_category<int>(const int &)':
/export/home/users/joseph/egcs-971114/include/g++/stl_iterator.h:126:
return-type `{error}' is an incomplete type
/export/home/users/joseph/egcs-971114/include/g++/stl_iterator.h:126: confused
by earlier errors, bailing out

Compilation exited abnormally with code 1 at Tue Nov 18 13:18:07


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