RAD Studio
ContentsIndex
PreviousUpNext
E2402: Illegal base class type: formal type 'type' resolves to 'type' (C++)

When instantiating a template class definition, if it is found that a declared base class does not resolve to an accessible class type, this error will result. For example:

template<class T>
class foo : public T { };
foo<int> x;// error: "int" is not a valid base class
foo<bar> y;// error: "bar" is an unknown type
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!