bugGNU Octave - Bugs: bug #50923, index expression on array valued...

 
 

bug #50923: index expression on array valued classdef property fails

Submitter:  A.R. Burgers <arb>
Submitted:  Wed 03 May 2017 07:23:51 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Aug 2017 03:38:59 PM UTC, comment #2: 

This seems to have been fixed at some point.  Using 23837:551e4d1dd28f I ran the attached code and it works as it did before in 4.0.3 and 4.2.1.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Wed 03 May 2017 08:44:01 AM UTC, comment #1: 

Confirmed:


v = 4.3.0+
ans = 314d980bee93+
m1 = [](2x0)
m2 =

   1
   1

m3 =

   1
   1


It's probably a consequence of changes in bug #50716. The issue is with "end" so a workaround is to replace it with size(obj.m,2).

Guillaume <gyom>
Wed 03 May 2017 07:23:51 AM UTC, original submission:  

consider attached class a.m and script run_a.m to run it.
On 4.0.3 and 4.2.1 it reports

v = 4.0.3
m1 =
   1
   1

m2 =
   1
   1

m3 =
   1
   1


on current dev:


v = 4.3.0+
ans = 314d980bee93+
m1 = [](2x0)
m2 =
   1
   1

m3 =
   1
   1


The [](2x0) is produced by get_m1 method:


function val = get_m1(obj)
    val = obj.m(:, 2:end);
end


A.R. Burgers <arb>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #40566:  a.m added by arb (405B - application/octet-stream)
file #40567:  run_a.m added by arb (131B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by amro_octave
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by arb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-07 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2017-07-03 amro_octave Carbon-Copy- Added amro_octave
    2017-05-03 arb Attached File- Added a.m, #40566
        Attached File- Added run_a.m, #40567

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code