diff libinterp/parse-tree/oct-parse.in.yy @ 23806:6925c8d2cd87

oct-parse.in.yy: Initialize m_classdef_object to nullptr when parser is reset. * oct-parse.in.yy (base_parse::reset): Initialize m_classdef_object to nullptr.
author Rik <rik@octave.org>
date Fri, 28 Jul 2017 11:45:07 -0700
parents 771310737137
children dca84dfe167f
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy	Fri Jul 28 11:30:38 2017 -0700
+++ b/libinterp/parse-tree/oct-parse.in.yy	Fri Jul 28 11:45:07 2017 -0700
@@ -2181,8 +2181,7 @@
     m_function_scopes.clear ();
     m_primary_fcn_ptr  = nullptr;
     m_subfunction_names.clear ();
-    // FIXME: What about m_classdef_object?  Shouldn't this be required?
-    // m_classdef_object = nullptr;
+    m_classdef_object = nullptr;
 
     delete m_stmt_list;
     m_stmt_list = nullptr;