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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Olli Pottonen <[email protected]> 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: -------