Inheritance problem

What you posted compiles without error.

I suspect a macro name "AlphaClass".