bugGNU Octave - Bugs: bug #51285, max_recursion_depth error in...


bug #51285: max_recursion_depth error in classdef constructor

Submitted by:  Guillaume <gyom>
Submitted on:  Wed 21 Jun 2017 09:55:57 AM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 21 Jun 2017 09:55:57 AM UTC, original submission:  

Out of curiosity, I was testing further @gramm and came across an infinite recursion at the highlighted lines:

To reproduce it, use the following class:

classdef recurse
    value = [];
    function obj = recurse ()
      obj(1).value.prop = 42;

Calling the constructor returns:

octave:1> recurse
error: max_recursion_depth exceeded
error: called from
    recurse at line 7 column 25

This disappears if obj.value is used instead of obj(1).value.

Guillaume <gyom>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gyom (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.7