Template Inheritance Bug ?

John (Eljay) Love-Jensen eljay@adobe.com
Fri Aug 17 14:54:00 GMT 2007


Hi Yury,

>Could you explane,please, if it is a compiler bug or just the compiler feature.

It is neither a compiler bug, nor a compiler feature.  It is compliance to C++ specification (ISO 14882).

The Set in the parent class is being hidden by the Set in the derived class.

You should be able to un-hide the Set from the parent class in the derived class by specifying...

using A<EntityName>::Set;

... in the derived class.

HTH,
--Eljay



More information about the Gcc-help mailing list