This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c++ regression since 980502 breaks stl_hashtable.h
- To: egcs at cygnus dot com
- Subject: c++ regression since 980502 breaks stl_hashtable.h
- From: Jody Goldberg <jodygold at sanwafp dot COM>
- Date: Tue, 12 May 1998 10:59:14 -0400
- Cc: Jody Goldberg <jodyg at idt dot net>
--------------------------------------------------------------
template <class T> struct A
{
};
template <class T> struct B
{
typedef A<T> A;
void f() { }
};
template <class T> void foobar(A<T>& ht1)
{
}
--------------------------------------------------------------
The above code is a simplified version of stl_hashtable.h that has been
broken in the last several releases. The compiler produces :
] c++ -c z.C
z.C:12: non-template type `A' used as a template
z.C:13: warning: ANSI C++ forbids declaration `ht1' with no type