* typename problem ?
@ 1998-12-15 7:35 Miniussi
1998-12-15 9:24 ` Joe Buck
0 siblings, 1 reply; 2+ messages in thread
From: Miniussi @ 1998-12-15 7:35 UTC (permalink / raw)
To: egcs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: typename problem ?
1998-12-15 7:35 typename problem ? Miniussi
@ 1998-12-15 9:24 ` Joe Buck
0 siblings, 0 replies; 2+ messages in thread
From: Joe Buck @ 1998-12-15 9:24 UTC (permalink / raw)
To: Miniussi; +Cc: egcs
> 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)?
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-12-15 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-15 7:35 typename problem ? Miniussi
1998-12-15 9:24 ` Joe Buck
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).