#756: invalid PMC causes bus error with const.
--------------------+-------------------------------------------------------
 Reporter:  coke    |       Owner:       
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  none    |     Version:  trunk
 Severity:  high    |    Keywords:       
     Lang:          |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------
 This PIR causes a bus error  (note that the specified PMC type doesn't
 exist.)

 {{{
 .sub foo :main

  .const 'StringArray' foo  = "bar"
  $S0 = foo[2]
  say $S0

 .end


 .sub bar :immediate
   $P1 = new 'StringArray'
   $P1 = 4
   $P1[0] = 'a'
   $P1[1] = 'b'
   $P1[2] = 'c'
   $P1[3] = 'd'

 .end
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/756>
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