www.digitalmars.com         C & C++   DMDScript  

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


           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 puremagic.com
        ReportedBy: olli.pottonen paivola.fi

--- Comment #0 from Olli Pottonen <olli.pottonen 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);

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: -------
Feb 18 2013