Bug 27489 - Certain initial values in general for statement crashes the compiler
Summary: Certain initial values in general for statement crashes the compiler
Status: RESOLVED FIXED
Alias: None
Product: poke
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-28 23:15 UTC by Mohammad-Reza Nabipoor
Modified: 2022-07-11 18:38 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mohammad-Reza Nabipoor 2021-02-28 23:15:45 UTC
Hi.

(poke) for (var z = 0, y = 0; y < 1; ++z) { print "Hi\n"; ++y; }
Hi
(poke) for (var z = 0, y = -1; y < 1; ++z) { print "Hi\n"; ++y; }
Segmentation fault (core dumped)
Comment 1 Jose E. Marchesi 2022-01-05 13:34:23 UTC
This is fixed in poke master.