octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36146] Failed assertion in interpreter with a


From: Rik
Subject: [Octave-bug-tracker] [bug #36146] Failed assertion in interpreter with anonymous functions
Date: Thu, 14 Mar 2013 15:26:10 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

Follow-up Comment #3, bug #36146 (project octave):

The new parser, which is causing an assertion failure on some platforms with
functions defined on the command line, exhibits this bug in a new way.

With a recent tip (a4af67e0d22c), I now get the following


 f = @(x) x*(1)
> ;
,: interpfcn/symtab.h:2039: static void
symbol_table::set_curr_fcn(octave_user_function*, int): Assertion `scope !=
xtop_scope && scope != xglobal_scope' failed.
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Abort


Another change, which may be a red herring, is that I had to add a semicolon
on the next line to tell the parser that input was complete.  Previously the
newline was enough as the function definition was complete.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36146>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]