bugGNU Octave - Bugs: bug #36861, undefined function error without id

 
 

bug #36861: undefined function error without id

Submitter:  Juan Pablo Carbajal <juanpi>
Submitted:  Tue 17 Jul 2012 01:15:07 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  juanpi Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Feb 2014 01:16:02 PM UTC, comment #3: 

a related change is in file ov-usr-fnc.cc:


<  ::error ("invalid use of script %s in index expression", file_name.c_str ());

>  ::error_with_id ("Octave:script-invalid-index",
>    "invalid use of script %s in index expression", file_name.c_str ());


Felipe G. Nievinski <fgnievinski>
Tue 17 Jul 2012 10:11:34 PM UTC, comment #2: 

Juan's changeset has been pushed and is ready for testing.

Ben Abbott <bpabbott>
Group Member
Tue 17 Jul 2012 03:29:43 PM UTC, comment #1: 

Forget about the "stack" comment... it works fine

Juan Pablo Carbajal <juanpi>
Group Member
Tue 17 Jul 2012 01:15:07 PM UTC, original submission:  

Define the function:

function ret = foobar ()
  try
    fubar ();
  catch
    ret = lasterror;
  end
endfunction

Call:

> foobar()

ans =

  scalar structure containing the fields:

    message = `fubar' undefined near line 24 column 5
    identifier =
    stack =

The error doesn't have an indetifier. The patch below should fix it. However I couldn't fill in the "stack" field.

Juan Pablo Carbajal <juanpi>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26215:  changeset.patch added by juanpi (876B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by fgnievinski (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by juanpi (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
    2014-02-03 rik5 Carbon-CopyRemoved 72865 -
    2012-10-15 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2012-07-17 bpabbott StatusNone Ready For Test
    2012-07-17 juanpi Attached File- Added changeset.patch, #26215

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code