egcs problem

Tudor Hulubei tudor@cs.unh.edu
Thu Apr 30 15:45:00 GMT 1998


Hi,

With the latest CVS tree, the following program fails to compile (even
though it compiles fine with gcc-2.8.1 and used to compile with
previous versions of egcs too.

#include <hash_map>
#include <string>

hash_map<string, int> h;

I get a bunch of errors in the STL headers:

In file included from /home/tudor/usr/include/g++/hash_map:31,
                 from /home/tudor/t.cc:1:
/home/tudor/usr/include/g++/stl_hashtable.h:593: non-template type `hashtable' used as a template
/home/tudor/usr/include/g++/stl_hashtable.h:594: non-template type `hashtable' used as a template
....

Hope this helps,
Tudor



More information about the Gcc mailing list