Comment #0 by maximechevalierb — 2013-07-08T11:54:40Z
Created attachment 1231
failing test case
Using alloca in a function with a struct that has a destructor seems to cause
an internal compiler error in DMD. The following error message results:
Internal error: eh.c 54
A failing test case is attached.
Comment #1 by yebblies — 2013-08-20T07:40:24Z
For small test cases, please paste inline instead of attaching.
import core.stdc.stdlib;
struct TheStruct
{
~this()
{
}
}
void bar()
{
}
void main()
{
auto s = TheStruct();
bar();
auto a = alloca(16);
}
I can't reproduce on win32, but that is not a surprise as eh.c is posix-only.
Comment #2 by clugdbug — 2013-08-28T00:20:03Z
*** This issue has been marked as a duplicate of issue 3753 ***