public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
To: egcs-bugs@cygnus.com
Cc: Jose.Gomes@sophia.inria.fr
Subject: Annoying bug in g++ current (egcs-2.92.04 19980914) frontend
Date: Wed, 16 Sep 1998 09:00:00 -0000	[thread overview]
Message-ID: <199809161452.QAA11473@mururoa.inria.fr> (raw)
In-Reply-To: <199809161135.NAA00723@zedo.fuedo.de>

	IMHO, the following code should compile...

template <class T>
class B {
	typedef T Real;
};


template <class Real>
class A : B<Real> {
 	typedef Real type;
};

mururoa->/u/corse/2/robotvis/egcs2.6/bin/g++ test2.C 
test2.C:9: re-using name of template parameter `Real' in this scope
test2.C:7:  previously declared here `class Real'

It works fine with the 1.1 release. Am I wrong to consider this a bug?


	Thank's lot,

	Theo.

--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------




  reply	other threads:[~1998-09-16  9:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <orr9xelie0.fsf@tiete.dcc.unicamp.br>
1998-09-14 13:55 ` egcs 1.1a on DEC alpha OSF/3.2, problem with include files Jeffrey A Law
1998-09-15 15:30   ` Alexandre Oliva
1998-09-15 15:39     ` Jeffrey A Law
1998-09-15 19:06       ` Alexandre Oliva
1998-09-16  1:43         ` Jeffrey A Law
1998-09-16  5:01       ` kuball
1998-09-16  9:00         ` Theodore Papadopoulo [this message]
1998-09-19 11:32           ` Annoying bug in g++ current (egcs-2.92.04 19980914) frontend Martin von Loewis

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=199809161452.QAA11473@mururoa.inria.fr \
    --to=theodore.papadopoulo@sophia.inria.fr \
    --cc=Jose.Gomes@sophia.inria.fr \
    --cc=egcs-bugs@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).