bugGNU Octave - Bugs: bug #58728, Array row is left empty if it...

 
 

bug #58728: Array row is left empty if it contains an empty struct array

Submitter:  Fernando <tutissanalio>
Submitted:  Wed 08 Jul 2020 08:55:24 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Jul 2020 11:33:49 AM UTC, comment #1: 

I'm closing this bug as a duplicate of bug #58695 because the underlying cause is the same.  The expression x.a returns an undefined value.

John W. Eaton <jwe>
Group administrator
Wed 08 Jul 2020 08:55:24 AM UTC, original submission:  

I get the following result in Octave (hg id ea5a632b2553):


>> x=struct("a",1)
x =
  scalar structure containing the fields:
    a = 1
>> x(1)=[]
x =
  1x0 struct array containing the fields:
    a
>> [2, x.a, 5]
ans = [](0x0)


However, the result of the last statement should have been:


>> [2, x.a, 5]
ans =
   2   5


which is what I get in Matlab 2020a.

This looks similar to bug #58695, but the bug stays after applying the changeset for that bug.

Fernando <tutissanalio>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by tutissanalio (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-08 jwe StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #58695

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code