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

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

[Octave-bug-tracker] [bug #58677] Error when using += operator


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #58677] Error when using += operator
Date: Tue, 30 Jun 2020 11:33:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #6, bug #58677 (project octave):

Yes, this looks like a bug. A simplified test case:

cat ta.m 
1;
x=[(1:10)]';
tb

cat tb.m 
1;
x += ones(10,1);


With octave 5.2:
octave:1> ta
error: x(61,_): but x has size 10x1
error: called from
    tb at line 2 column 1
    ta at line 3 column 1

With octave 6.0.1 (hg id: 49f4d7814760 (stable))
octave:1> ta
error: x used as variable and later as function
error: called from
    tb at line 3 column 1
    ta at line 3 column 1

Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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