* c++ regression since 980502 breaks stl_hashtable.h
@ 1998-05-12 9:49 Jody Goldberg
0 siblings, 0 replies; only message in thread
From: Jody Goldberg @ 1998-05-12 9:49 UTC (permalink / raw)
To: egcs; +Cc: Jody Goldberg
--------------------------------------------------------------
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-12 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-12 9:49 c++ regression since 980502 breaks stl_hashtable.h Jody Goldberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).