This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ 2.95.2 fails to issue an error despite missing typename keyword
- To: "gcc bug list" <gcc-bugs at gcc dot gnu dot org>
- Subject: g++ 2.95.2 fails to issue an error despite missing typename keyword
- From: " " <sebor at my-Deja dot com>
- Date: Tue, 18 Jan 2000 08:00:45 -0800
- Cc: "John Pedretti" <pedretti at roguewave dot com>
- Organization: My Deja Email (http://www.my-deja.com:80)
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.