octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What we found about the bug #53906


From: CHALI Anis
Subject: What we found about the bug #53906
Date: Thu, 14 Feb 2019 16:04:17 +0000

Hi Mister Richard CROZIER,
We are debugging octave source code and I found something which seems to be an anomaly for me so I would like get a help if you have time please.

first the error comes from

file: libinterp/corefcn/data.cc ==>> function: octave_value do_class_concat (const octave_value_list& ovl, std::string cattype, int dim) ==>> line: 1758
///////////////////////////////////////////////////////
       std::list<std::string> parents = tmp(0).parent_class_name_list ();
///////////////////////////////////////////////////////

in this line we call the method parent_class_name_list() which is implemented in file: libinterp/corefcn/ov-base.cc line: 850
and it's implementation raises an error as we see below. So I don't understand why it's implemented that way?
///////////////////////////////////////////////////////////
std::list<std::string>
octave_base_value::parent_class_name_list (void) const
{
  err_wrong_type_arg ("octave_base_value::parent_class_name_list()",
                      type_name ());
}
//////////////////////////////////////////////////////////

and the second thing is in the file data.cc just after the first anomaly we call octave_value constructor which takes an octave_map&, std::string& and octave_value_list& but in the scope of the error the constructor is called with an octave_map&, std::string& and list<std::string>&

///////////////////////////////////////////////////
line :1760
 retval = octave_value (new octave_class (m, cname, parents));
///////////////////////////////////////////////////

Thank you very much.

Regards.

Anis CHALI
Computer science student.
Paris 8 University.
07.52.13.73.94
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]