octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59775] error: mark_as_constructed: invalid ob


From: anonymous
Subject: [Octave-bug-tracker] [bug #59775] error: mark_as_constructed: invalid object
Date: Tue, 29 Dec 2020 06:42:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

URL:
  <https://savannah.gnu.org/bugs/?59775>

                 Summary: error: mark_as_constructed: invalid object
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 29 Dec 2020 11:42:25 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Marc Pfetsch
        Originator Email: pfetsch@mathematik.tu-darmstadt.de
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The attached class produces the error

error: mark_as_constructed: invalid object

e.g. for the call M=MAC(2).

To fix the problem one can do the following, although I am not sure whether
the solution is correct:

In libinterp/octave-value/cdef-object.h and in

  class cdef_object_array : public cdef_object_base

one can add

  void mark_as_constructed (void) { }
  void mark_as_constructed (const cdef_class& cls) { }


In any case, the original virtual functions do not seem to be overloaded
correctly for "arrays of classes".



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 29 Dec 2020 11:42:26 AM UTC  Name: MAC.m  Size: 321B   By: None
Mark As Constructed error example
<http://savannah.gnu.org/bugs/download.php?file_id=50584>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59775>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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