diff --git a/include/pocketpy/compiler/expr.hpp b/include/pocketpy/compiler/expr.hpp index 694b714b..8834f4a5 100644 --- a/include/pocketpy/compiler/expr.hpp +++ b/include/pocketpy/compiler/expr.hpp @@ -52,7 +52,7 @@ struct Expr { inline void delete_expr(Expr* p) noexcept{ if(!p) return; - p->Expr::~Expr(); + p->~Expr(); PoolExpr_dealloc(p); }