a typename is required !

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Thu Jul 9 15:35:00 GMT 1998


> 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)

If egcs-2.91.45 compiles your code with -pedantic, it says
xx.cc:35: syntax error before `operator'
xx.cc:35: `T1' was not declared in this scope

egcs supports injection of implicit 'typename' tokens as an
extensions, you need to provide -pedantic to disable such extensions.

Regards,
Martin



More information about the Gcc-bugs mailing list