bugGNU Octave - Bugs: bug #33428, error () function doesn't accept...

 
 

bug #33428: error () function doesn't accept the empty struct

Submitter:  None
Submitted:  Sun 29 May 2011 05:03:19 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 04 Jun 2011 11:13:04 PM UTC, comment #1: 

The problem was actually more with nargchk which should have returned a scalar struct, instead of an array struct.  I patched nargchk, nargoutchk, and error in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/4972eb61c6d6).

To access the fix you will need to build from the development sources.  Instructions for downloading are here (http://www.gnu.org/software/octave/download.html).

Rik <rik5>
Group administrator
Sun 29 May 2011 05:03:19 PM UTC, original submission:  

For example the call:

error(nargchk(1, 5, 4, 'struct'))

Returns with a

error: invalid conversion of multidimensional struct to scalar struct

The nargchk set the return value to struct ([]);

And this "crashes" the error call.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 rik5 (Posted a comment)
  •  

    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
    2011-06-04 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Summaryerror call doesn\'t accpet the empty struct. error () function doesn't accept the empty struct

    Back to the top

    Powered by Savane 3.13-58d6.
    Corresponding source code