Ticket #902 (closed bug: fixed)
segfault with macro
Reported by: | coke | Owned by: | chromatic |
---|---|---|---|
Priority: | normal | Milestone: | 2.1 |
Component: | imcc | Version: | trunk |
Severity: | fatal | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
Arguably, this could either print out 0 and stop, or it could complain about a bad label.
Currently, it segfaults.
(While macro taken verbatim from hllmacros.pir)
$ more foo.pir .macro While(conditional, code) .label $beginwhile: unless .conditional goto .$endwhile .code goto .$beginwhile .label $endwhile: .endm .sub main .While($I0 < 3, { say $I0 goto .$endwhile inc $I0 }) .end
Change History
Note: See
TracTickets for help on using
tickets.