#902: segfault with macro
--------------------+-------------------------------------------------------
 Reporter:  coke    |       Owner:       
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  imcc    |     Version:  trunk
 Severity:  fatal   |    Keywords:       
     Lang:          |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/902>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to