[Issue 14453] segfault in release mode

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 25 01:11:21 PDT 2016


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

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com

--- Comment #4 from yebblies <yebblies at gmail.com> ---
So, the glue layer generates 'ex' which calls the allocator, then calls the
ctor on el_same(ex) which decides that since ex has no side effects (being pure
and nothrow) it's fine to just duplicate the tree.  So we get:

C.new(8), C.new(8).__ctor

So basically C.new(8) ISN'T pure in a way that matters quite a lot here.

--


More information about the Digitalmars-d-bugs mailing list