[Issue 9532] New: scope(exit) + alloca -> internal error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 18 09:10:08 PST 2013


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

           Summary: scope(exit) + alloca -> internal error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: olli.pottonen at paivola.fi


--- Comment #0 from Olli Pottonen <olli.pottonen at paivola.fi> 2013-02-18 09:10:07 PST ---
In some cases using scope(exit) and alloca() in the same function leads to DMD
internal error.
For example:

import core.stdc.stdlib;

void f(int) {} 

void main() {
  scope(exit) f(0);
  void* bar = alloca(1);
  f(0);
}

Trying to compile the code above fails with "Internal error: eh.c 60". I tried
this on x86_64 with DMD v.2.061 on OS X and Linux with the same result.

-- 
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