public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Miniussi <miniussi@ilog.fr>
To: egcs@cygnus.com
Subject: typename problem ?
Date: Tue, 15 Dec 1998 07:35:00 -0000	[thread overview]
Message-ID: <36768180.F3717853@ilog.fr> (raw)

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

             reply	other threads:[~1998-12-15  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-15  7:35 Miniussi [this message]
1998-12-15  9:24 ` Joe Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36768180.F3717853@ilog.fr \
    --to=miniussi@ilog.fr \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).