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

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

[Octave-bug-tracker] [bug #62587] __FILE__ crashes the interpreter


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #62587] __FILE__ crashes the interpreter
Date: Sun, 5 Jun 2022 16:48:34 -0400 (EDT)

Follow-up Comment #2, bug #62587 (project octave):

Same thing happens with __LINE__. Even though it doesn't make sense with
fileparts, it should at least give an error without crashing.

On 6.4.0:

octave:1> [a,b,c] = fileparts(__LINE__)
error: fileparts: FILENAME must be a single string
error: called from
    fileparts at line 42 column 5


On 7.1.0:

octave:1> [a,b,c] = fileparts (__LINE__)
panic: impossible state reached in file
'/home/jwe/src/octave-stable/libinterp/parse-tree/oct-parse.yy' at line 2878
fatal: caught signal Aborted -- stopping myself...
Aborted (core dumped)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62587>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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