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

Fernando <[email protected]> Tue, 4 Aug 2026 13:34:05 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============5608355346037421773==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============5608355346037421773==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-1649760492-1785864845=:875570"
Content-Disposition: inline

--8323329-1649760492-1785864845=:875570
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Follow-up Comment #3, bug #68529 (group octave):=0A=0AI think the OP is rig=
ht. Another example:=0A=0A=0Aa=3D1;=0Aif =0A  a=3D=3D1;=0A  a=3D2;=0Aend=0A=
=0A=0AThis code does not throw any error in Octave (12.0.0). The expression=
 "a=3D=3D1"=0Ais taken as the condition of the "if" in the previous line. I=
 think this is=0Aconfusing, and unintended behavior.=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-1649760492-1785864845=:875570
Content-Type: APPLICATION/pgp-signature; name=signature.asc

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

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCanIijQAKCRCqLAuaBUf3
TtSbAP4pyqK6rCHg7mOuzXQOQtacauzRu8OCJip/IhgKU0nA8AD+OGvBKdFlet1T
2NG2WWUunovL1CnyLfLni3tvQPhkCwY=
=bMvG
-----END PGP SIGNATURE-----

--8323329-1649760492-1785864845=:875570--



--===============5608355346037421773==--