a typename is required !
Gabriel Dos Reis
Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Fri Jul 10 01:35:00 GMT 1998
>>>>> ëMartinû, Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> wrote:
>> I think a typename is required in the following test case
>> look at C-s buggy.
>>
>> same symptoms for 2.91.45 and 1.0.3.
>>
>> (bugs found by aCC compiler)
Martin> If egcs-2.91.45 compiles your code with -pedantic, it says
Martin> xx.cc:35: syntax error before `operator'
Martin> xx.cc:35: `T1' was not declared in this scope
Martin> egcs supports injection of implicit 'typename' tokens as an
Martin> extensions, you need to provide -pedantic to disable such extensions.
My feeling is that this extension should not be on by default...
-- Gaby
More information about the Gcc-bugs
mailing list