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 !


[implicit typename]
> My feeling is that this extension should not be on by default...

This is (or should be) a configuration issue. Some companies are
packaging gcc so that it works in ANSI mode by default (i.e. as c89).

The plain gcc is generous to accept non-compliant code as long as it
is not ambiguous.

As for the typename construct: It was introduced into C++ only
recently, so many programs won't have. OTOH, if you use it, other
compilers might reject your code.

I don't argue that g++ should silently assume the implicit typename;
it's just that you can just toggle the current switch: You have to
provide a warning, and then you have to continue to consume what
you've got. I think a patch in this respect would be accepted.

Regards,
Martin


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