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

c++ regression since 980502 breaks stl_hashtable.h


--------------------------------------------------------------
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
 


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