[bug #68529] A if ... elseif syntax error not flagged.

Liang Tang <[email protected]> Thu, 16 Jul 2026 11:44:18 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============8414938444146881690==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============8414938444146881690==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-1714636915-1784216658=:1417452"
Content-Disposition: inline

--8323329-1714636915-1784216658=:1417452
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?68529>=0A=0A                 Summa=
ry: A if ... elseif syntax error not flagged.=0A                   Group: G=
NU Octave=0A               Submitter: lt1234=0A               Submitted: Th=
u 16 Jul 2026 03:44:14 PM UTC=0A                Category: Interpreter=0A   =
             Severity: 3 - Normal=0A                Priority: 5 - Normal=0A=
              Item Group: Missed Error or Warning=0A                  Statu=
s: None=0A             Assigned to: None=0A         Originator Name: lt1234=
=0A        Originator Email:=0A             Open/Closed: Open=0A         Di=
scussion Lock: Unlocked=0A                 Release: 11.1.0=0A        Operat=
ing System: Microsoft Windows=0A           Fixed Release: None=0A         P=
lanned Release: None=0A=0A=0A    __________________________________________=
_____________=0A=0AFollow-up Comments:=0A=0A=0A----------------------------=
---------------------------=0ADate: Thu 16 Jul 2026 03:44:14 PM UTC By: Lia=
ng Tang <lt1234>=0AThis should be a syntax error.  Thanks.  =0A=0AIn gui co=
mmand window:=0A=0Aoctave:108> a=3D1; clear b;  if  a=3D=3D1, elseif, b=3D1=
, end; =0Awarning: suggest parenthesis around assignment used as truth valu=
e=0A=0AMatlab flags as an error.  =0A=0A=0A=0A=0A=0A=0A=0A=0A    __________=
_____________________________________________=0A=0AReply to this item at:=
=0A=0A  <https://savannah.gnu.org/bugs/?68529>=0A=0A_______________________=
________________________=0AMessage sent via Savannah=0Ahttps://savannah.gnu=
.org/=0A
--8323329-1714636915-1784216658=:1417452
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCalj8UgAKCRCqLAuaBUf3
Ts38AQDGammRjPKn0FOc15xKcDD6yYP+0cRXBPJQaNtI2zp9PgD/RNvzRJs4oHc/
CO0Ewcbp6+f+BicSMTO1aQN1KLw9iAs=
=t1zD
-----END PGP SIGNATURE-----

--8323329-1714636915-1784216658=:1417452--



--===============8414938444146881690==--