[Issue 3753] ICE(eh.c): Related to exception handling and alloca.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 21 07:07:40 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=3753

--- Comment #12 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/6302257b0cdc5d171511cc6f1566956ff11b09c5
Prevent using alloca and tempCString in same functions

Currently using both alloca and finalizers (==destructor call) in a function is
unsupported excepting Win32 (issue 3753). However compiler doesn't recognize
implicit destructor calls sometimes, and they're not called during stack
unwinding (issue 14708).

For the workaround, replace alloca call with malloc + scope(exit) free.

--


More information about the Digitalmars-d-bugs mailing list