[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47909] load and += does not add
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47909] load and += does not add |
Date: |
Thu, 12 May 2016 16:54:14 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #47909 (project octave):
Severity: 3 - Normal => 4 - Important
Status: None => Confirmed
Release: 3.8.2 => dev
Summary: load and += doesnot add => load and += does not add
_______________________________________________________
Follow-up Comment #1:
Confirmed. This bug exists for the current stable version of Octave (4.0.2)
as well as on the development branch.
The bug is not specific to the file format used to save the variable 'a'. I
have used Octave's own binary and text formats and the errors are the same.
The bug is specific to executing the lines within an m-file. I have tried
both the original file, which is actually just a script. I have also tried
wrapping the script lines within function/endfunction and calling b42(), but
that fails as well.
The error on line 2 comes from using the in-place += operator. If I use the
line
a = a + 1;
then the code also works. It would appear that the row/column indices for the
+= operation are not being generated correctly because on the development
branch I get the slightly more informative error
error: a(61,_): but a has size 10x10
It is clear that Octave knows the size is 10x10.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47909>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/