'identifier' : constructor initializer lists are only allowed on constructor definitions
A base class initializer list was used on a function definition that was not a constructor.
The following is an example of this error:
class C
{
public:
C();
};
class D : public C
{
public:
D();
void func();
};
void D::func() : C() {} // error
D::D() : C() {} // OK