diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc index af56ab70..038b80f5 100644 --- a/data/skeletons/glr2.cc +++ b/data/skeletons/glr2.cc @@ -1235,8 +1235,7 @@ public: // is in unused state (in the list of free items), when parse.assert // is set. is_state_ = true; - void *yyp = raw_; - static_cast (yyp)->copyFrom (state); + new (&raw_) glr_state (state); } glr_state& getState ()