[Issue 4054] New: ICE(eh.c) line 49

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 2 19:57:50 PDT 2010


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: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at 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: -------


More information about the Digitalmars-d-bugs mailing list