[Issue 4655] Regression(1.063, 2.048) goto to a try block ICEs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 20 03:36:01 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4655


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-08-20 03:35:55 PDT ---
Silly mistake in the implementation of forward references, in the patch for
4339. It remembers the block the label is in, when it should be recording the
block which it was referenced from.

PATCH: s2ir.c, line 107, labelToBlock()

            // Keep track of the forward reference to this block, so we can
check it later
            if (!s->fwdrefs)
                s->fwdrefs = new Array();
-            s->fwdrefs->push(s->lblock);
+            s->fwdrefs->push(blx->curblock);
        }
    }
    return s->lblock;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list