[Issue 15056] [REG2.068.1] Unstored RAII struct return yields bogus error: "cannot mix core.std.stdlib.alloca() and exception handling"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 15 19:40:49 PDT 2015


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
> Not exactly sure why alloca doesn't work with EH handling

Because alloca shifts things around on the stack when it adds space, and the
generated EH tables do not account for that.

The only real fix for this is to implement official Elf-style exception
handling, which we should do anyway at some point. The fact that this was
compiling on early compilers doesn't mean it was working.

--


More information about the Digitalmars-d-bugs mailing list