This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
typename problem ?
- To: egcs at cygnus dot com
- Subject: typename problem ?
- From: Miniussi <miniussi at ilog dot fr>
- Date: Tue, 15 Dec 1998 16:34:24 +0100
In :
template <class X>
struct Truc {
typedef int tp;
tp get();
};
template<class X>
Truc<X>::tp // line 9
Truc<X>::get() {return 42;}
It seems that a typename is required line 9 (14.6(6)), but egcs does
not require it, even with -pedantic (and it seems that the provided
STL uses such a construct without typename). Did I missed something
with 14.6(6)?
Alain