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

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

[Octave-bug-tracker] [bug #50014] Octave segmentation violation when dup


From: Rik
Subject: [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist
Date: Tue, 10 Jan 2017 17:11:22 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

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

Also of interest, the parser accepts duplicate subfunction names, but uses the
first definition of the function.  It seems like it would be helpful if the
parser were to issue a warning or an error on encountering the second
duplicate subfunction.

Test case in the file testbug2.m:


function x = testbug2()

  x = 1;

endfunction

function y = testbug2()

  y = 2;

endfunction


Then execute


octave:1> testbug2
ans =  1




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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