[Issue 21709] std.conv.emplace not usable in betterC - 2.096

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 14 13:48:32 UTC 2021


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

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel at disroot.o
                   |                            |rg
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #2 from moonlightsentinel at disroot.org ---
This regression was introduced by enabling -preview=dtorfields by default[1].
This preview inserts a destructor call into constructors that is executed when
they abort with an exception (using a generated try ... catch ...).

DMD apparently fails to infer `nothrow` given that `-betterC` prohibits
exceptions.

[1] https://github.com/dlang/dmd/pull/11656

--


More information about the Digitalmars-d-bugs mailing list