Re: Crash with local variables and EXIT

Bernd Paysan <[email protected]> Sun, 01 Aug 2021 18:57:45 +0200
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <21145481.OWlgWqzMsr@liubei>
Am Sonntag, 1. August 2021, 18:39:40 CEST schrieb Anton Ertl:
> Looks like a bug in locals handling to me.  I'll look into it.

Doesn't need the ?EXIT

: test 1 { var } 2 { var } ; 

simple-see test 
$7FB34AFF6FF8 lit
$7FB34AFF7000 #1 
$7FB34AFF7008 >l
$7FB34AFF7010 lit
$7FB34AFF7018 #2 
$7FB34AFF7020 #16 
$7FB34AFF7028 >l
$7FB34AFF7030 lp+2
$7FB34AFF7038 ;s ok

Crashes only in gforth-itc, though.

This was created with gforth-itc, which does not do constant folding, so the 
#16 happens after the lit #2.  If you turn off WARNINGS, the problem 
disappears, so it must be a warning problem.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmEG0okACgkQ9y2Uk5Mt
oGexkw//Qz55OSAkTubzjj2Av/OLAea6UCfualN4yy3pcObyijGuosg1SaCWGH88
ktKpaFXedknMFLo5hZYF0IBWBc4DRSGQARpno2Tvgo6DfmUG66k5R+5BqUPVzZhK
Jp26yG8LXYdn5fsNVn/TB9gSxHXlEuyKgsArE/vGpvc9B2qgPQOOwUvWSYGVTT0o
8Sw+0PqFezPPraCkhfpCT1fixZN09pixHDhHJf9uNSayerHE2QtXZu1Vp6xwPX3G
yoQy8rTKiZBPTCfAIvSm7+s1KQub6/Js5xhAaAljnM/VLCbOx6n5yuSNGVrvI42y
C/hCYg2WEZMKPyrZ+dXP2iBCGo6Y0/mSm6S5PMgI9WzJTBZKkL1aFGQbgDB5eL3f
ezqVsHyQcH9msiDn+hgEwa+6dRSgcFFdCPBsA3jDtopYqPtE5k/5B5HgUdaIK8gR
T43KZJ1SDv0d2ImUV5X0ylZzoimEHYEJbJ9eLfTRtRIzeYZ2GH+F/77ijm+HfLtJ
1C49V8Yd5eWiYMdVH/yx40FbqMdYOJ2DZKaUfBURzdQxrsVQt4kCgP7uyMg8ieS4
s7NjhSM2zENRiYYjkP9OQWF8gONQr4MKhqaK2xIMXe7j8vziDbYW92ahve+d5cuA
V0QU/+M644VszsJM9WqK5GLHDgsObkX5stc+6pcoQBLrsD4kBFE=
=kfLF
-----END PGP SIGNATURE-----