[bug #68101] Missed error with missing tilde in function output

FatYoshi17 <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #1, bug #68101 (group octave):

This patch fixes bug #68101 where a missing output in a multi-assignment list
(e.g. [, order] = sort(...)) was incorrectly accepted instead of producing an
error.

The parser now rejects leading comma forms in cell_or_matrix_row when parsing
an assignment LHS by checking lexer.m_looking_at_matrix_or_assign_lhs.

[~, order] = ... continues to work correctly.

A regression test has been added in test/bug-68101.tst.

Please let me know if any changes are required.

(file #58288)

    _______________________________________________________

Additional Item Attachment:

Name: 0001-Fix-parser-reject-missing-outputs-in-multi-assignmen.patch Size:
4.1KiB

<https://file.savannah.gnu.org/file/0001-Fix-parser-reject-missing-outputs-in-multi-assignmen.patch?file_id=58288>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-2a2ecc185bd672dd377a2efbb667431a4b30acc3.tar.gz


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaaLZ4gAKCRCqLAuaBUf3
TvDbAQDVaHOttCcF+E4wAbkaz3Nnr9Me/wjUT2DA/huIp7qWEgD/XEzlUTfosf0H
LHosqG9HlxJAOoux9ZaY+c7uHOvOQQg=
=SjRT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.