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]

Correction to - Problem with "typename" in base class list


Although handled previously by EGCS 1.1.x, GCC 2.95.2 cannot handle the
keyword "typename" within the base class list of a class definition.  To

see what I mean, try compiling the following:

class EncapClass
{
};

template <class A>
class BaseTemplate
{
public:
    typedef EncapClass
        Type;
};

template <class A, template <class B> class BaseTemp>
class DerivedTemplate :
public typename BaseTemp <A>::Type                    // Problem is
caused by this line
{
};

int main()
{
}






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