g++ 2.95.2 fails to issue an error despite missing typename keyword
sebor@my-Deja.com
Tue Jan 18 08:01:00 GMT 2000
Hi,
the program below compiles without any dignostic despite the missing
required typename keyword (commented out).
Thank you
Martin Sebor
template <class T>
struct A
{
typedef T X;
};
template <class T>
struct B: public A<T>
{
typedef /* typename */ A<T>::X X;
};
int main ()
{
return B<int>::X ();
}
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
More information about the Gcc-bugs
mailing list