From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: miniussi@ilog.fr (Miniussi) Cc: egcs@cygnus.com Subject: Re: typename problem ? Date: Tue, 15 Dec 1998 09:24:00 -0000 Message-id: <199812151724.JAA25352@yamato.synopsys.com> References: <36768180.F3717853@ilog.fr> X-SW-Source: 1998-12/msg00521.html > In : > > template > struct Truc { > typedef int tp; > tp get(); > }; > > template > Truc::tp // line 9 > Truc::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)? It's a bug: egcs currently does not require typename in all the places that it should. As you say, there should at least be a warning.