|
| From: | Piotr Held |
| Subject: | [Octave-bug-tracker] [bug #51935] Problem with meta.class.fromName |
| Date: | Tue, 5 Sep 2017 20:44:32 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 |
Follow-up Comment #1, bug #51935 (project octave):
I wrote a few line patch for this problem.
This problem is in pt-eval.cc in function
tree_evaluator::visit_index_expression. It's connected to the fact that
indexing_object was properly evaluated only before starting the indexing in
line 1299
<http://hg.savannah.gnu.org/hgweb/octave/file/eef8c31ffe97/libinterp/parse-tree/pt-eval.cc#l1299>.
It needs to be evaluated after getting every partial_expr_val.
I also added a test for this problem under test/classdef/classdef.tst.
(file #41740)
_______________________________________________________
Additional Item Attachment:
File name: patch_bug51935.diff Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51935>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |