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

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

[Octave-bug-tracker] [bug #65308] bytecode interpreter: incorrect number


From: Petter
Subject: [Octave-bug-tracker] [bug #65308] bytecode interpreter: incorrect number of output arguments
Date: Wed, 14 Feb 2024 18:04:01 -0500 (EST)

Follow-up Comment #3, bug#65308 (group octave):

The attached patch should solve the issue. It was a more shallow problem than
I thought.


Fix cs-list escape from matrix in bytecode interpreter (bug #65308)

A '{:}' expansion inside a matrix inside an anonymous function made
the cs-list escape the matrix when nargout was not 1, due to the
expansion inheriting the nargout value from the parent function.

Check the "special nargout -1" flag is not active, before pushing
any "inherit nargout from parent function" opcode.

* pt-bytecode-walk.cc: Chech flag
* bytecode_anon_handles.m: Add test


(file #55705)

    _______________________________________________________

Additional Item Attachment:

File name: octave_33192.patch             Size:2 KB
    <https://file.savannah.gnu.org/file/octave_33192.patch?file_id=55705>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-8523ddde37d79b56404205a28f13efda563b0104.tar.gz


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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