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

 
 

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

Submitted by:  None
Submitted on:  Sun 29 May 2011 05:03:19 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 04 Jun 2011 11:13:04 PM UTCrik5StatusNone=>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.1-cleanup1