[svn:parrot] r39895 - trunk/compilers/pct/src/PAST

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Mon Jul 6 04:08:28 UTC 2009


Author: pmichaud
Date: Mon Jul  6 04:08:27 2009
New Revision: 39895
URL: https://trac.parrot.org/parrot/changeset/39895

Log:
[pct]:  Fix bug with 'attribute' scoped PAST::Var nodes (TT #803, report
and diagnostics from Austin Hastings)

Modified:
   trunk/compilers/pct/src/PAST/Compiler.pir

Modified: trunk/compilers/pct/src/PAST/Compiler.pir
==============================================================================
--- trunk/compilers/pct/src/PAST/Compiler.pir	Mon Jul  6 03:33:42 2009	(r39894)
+++ trunk/compilers/pct/src/PAST/Compiler.pir	Mon Jul  6 04:08:27 2009	(r39895)
@@ -2224,20 +2224,21 @@
     .param pmc node
     .param pmc bindpost
 
-    .local string name
+    .local pmc ops
     $P0 = get_hll_global ['POST'], 'Ops'
+    ops = $P0.'new'('node'=>node)
+    .local string name
     name = node.'name'()
     name = self.'escape'(name)
 
-    .local pmc call_on, ops
+    .local pmc call_on
     call_on = node[0]
     if null call_on goto use_self
     call_on = self.'as_post'(call_on, 'rtype'=>'P')
-    ops = call_on
+    ops.'push'(call_on)
     goto invocant_done
   use_self:
     call_on = box 'self'
-    ops = $P0.'new'('node'=>node)
   invocant_done:
 
     if bindpost goto attribute_bind


More information about the parrot-commits mailing list