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

           Summary: ICE(eh.c) line 49
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: rob...@octarineparrot.com


--- Comment #0 from Robert Clipsham <rob...@octarineparrot.com> 2010-04-03 
03:57:49 BST ---
The following test case:
----
import core.stdc.stdlib : alloca;
class A { }
void b()
{
        scope a = new A;
        int l;
        alloca(l);
        goto L1;
L1:
        ;
}
----

Causes dmd to ICE with the following error:
Internal error: eh.c 49

Slight changes to the test case cause the error to go away. Looking at
dmd/eh.c:
----
    // BUG: alloca() changes the stack size, which is not reflected
    // in the fixed eh tables.
    assert(!usedalloca);
----
So it seems I've triggered one of these cases.

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

Reply via email to