|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #59661] classdef method call fails with "octave_base_value::function_value(): wrong type argument '<unknown type>'" |
Date: | Tue, 15 Dec 2020 12:39:10 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.60 |
Follow-up Comment #7, bug #59661 (project octave): Confirmed here. If I revert to the original changeset, the example in comment #0 works again: diff -r ed1a8af4242f libinterp/octave-value/ov-fcn-handle.cc --- a/libinterp/octave-value/ov-fcn-handle.cc Tue Dec 15 17:08:43 2020 +0100 +++ b/libinterp/octave-value/ov-fcn-handle.cc Tue Dec 15 18:35:51 2020 +0100 @@ -449,7 +449,7 @@ // Cache this value so that the pointer will be valid as long as the // function handle object is valid. - m_fcn = symtab.find_method (m_name, m_dispatch_class); + m_fcn = symtab.find_function (m_name, octave_value_list ()); return m_fcn.is_defined () ? m_fcn.function_value () : nullptr; } But again: I'm new to that part of the code. I'm not sure if that change is *always* correct. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59661> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |