CXX stap-parse.o
../parse.cxx: In destructor ‘parser::pp1_activation::~pp1_activation()’:
../parse.cxx:421:16: error: deleting object of polymorphic class type
‘parser::pp_macrodecl’ which has non-virtual destructor might cause
undefined behaviour [-Werror=delete-non-virtual-dtor]
cc1plus: all warnings being treated as errors
We need virtual ~macrodecl to destroy the inherited pp_macrodecl.
virtual bool is_closure() { return false; }
macrodecl () : tok(0), context(ctx_local) { }
- ~macrodecl ();
+ virtual ~macrodecl ();
};