Mercurial > octave
diff libinterp/parse-tree/pt-colon.cc @ 25814:a8a72d1c21dd stable
correctly copy base class for colon and funcall parse tree objects (bug #47091)
* pt-colon.cc (tree_colon_expression::dup): Pass *this to copy_base,
not the newly created object.
* pt-funcall.cc (tree_funcall::dup): Likewise.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 18 Aug 2018 12:43:43 -0400 |
parents | 6652d3823428 |
children | 00f796120a6d |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-colon.cc Fri Aug 17 14:04:51 2018 -0700 +++ b/libinterp/parse-tree/pt-colon.cc Sat Aug 18 12:43:43 2018 -0400 @@ -39,7 +39,7 @@ m_increment ? m_increment->dup (scope) : nullptr, line (), column ()); - new_ce->copy_base (*new_ce); + new_ce->copy_base (*this); return new_ce; }