bugGNU Octave - Bugs: bug #50395, subclassing a class that is also...


bug #50395: subclassing a class that is also defined as a variable fails

Submitted by:  A.R. Burgers <arb>
Submitted on:  Fri 24 Feb 2017 10:29:35 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  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.


Fri 24 Feb 2017 10:29:35 PM UTC, original submission:  

consider class c

classdef c

and class a, subclassing c:

classdef a < c
        function obj = a()
            disp('a instance created');

Then the following script:

a_i = a();

clear all
c = 3;
a_i = a();

produces this:

a instance created
error: class not found: c

A.R. Burgers <arb>


(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 arb (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