------- Comment #1 from rguenth at gcc dot gnu dot org 2006-02-24 10:05 ------- /usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../include/c++/3.4.4/bits/stl_pair.h:74: error: `std::pair<_T1, _T2>::second' has incomplete type tt.cpp:14: error: forward declaration of `class A'
You cannot use the incomplete (at this point) type 'class A' for hash_map<string,A,str_hash> map_body; try using a base class here like class B {}; class A : public B { ... hash_map<string,B,str_hash> map_body; -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26454