This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typedef vs. typename confusion
- To: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Subject: Re: typedef vs. typename confusion
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at dptmaths dot ens-cachan dot fr>
- Date: Tue, 4 Aug 1998 16:13:40 +0200 (MET DST)
- Cc: frichard at bbn dot com, egcs at cygnus dot com
- References: <199808031605.MAA26876@bbn.com><199808040638.IAA00271@mira.isdn.cs.tu-berlin.de>
>>>>> «Martin», Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> wrote:
>> I've been trying to come up with a small example, but I haven't been
>> able to. I have a pretty complicated template class hierarchy that
>> triggers this problem. I'll keep chiseling away at it, but I was
>> wondering if anyone else has seen this problem.
Martin> If you think you've found a bug, it is not really necessary to post a
Martin> small example: If you can, just post the code that gives you the
Martin> error.
Martin> Please note that ISO C++ requires the use of typename at certain
Martin> places. egcs has an extension to insert typename implicitely in places
Martin> where it previously was not needed. Not being a template expert, I
Martin> can't guess whether the extension will be fixed or completely dropped
Martin> in the medium term.
I had already pointed out that such an extension should be
turned off by *default*. Note I don't say it should be dropped.
Martin> Regards,
Martin> Martin
-- Gaby
"One reason that life is complex is that it has a
real part and imaginary part." -- Andrew Koenig