Created attachment 1231 [details] 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.
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.
*** This issue has been marked as a duplicate of issue 3753 ***