# New Ticket Created by  Elizabeth Mattijsen 
# Please include the string:  [perl #118183]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118183 >


[14:28:22] <lizmat>      r: sub a ( $a is copy ) { $a=5 }; a(1)
[14:28:24] <+camelia>    rakudo 0e206e: OUTPUT«Cannot modify an immutable 
value␤  in block  at /tmp/Dmc8P4X3n2:1␤␤»

While checking into this at the PLPW, it appears that this is an optimization 
problem.  If rakudo is run with --optimize=0, this does not occur.

Initial investigation points at src/vm/parrot/guts/bind.c, line 1104, where 
some optimization magic apparently is making the wrong decision.

This seems to be up jnthn's alley  :-)

Reply via email to