This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: a typename is required !


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]