This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: a typename is required !
>>>>> «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