[Issue 13719] std.datetime no longer compiles when trivial destructor is added

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 8 17:06:04 UTC 2021


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

Stanislav Blinov <stanislav.blinov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov at gmail.com

--- Comment #5 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
7 years later, adding the same dtor to Date and building unittests yields this
on Linux:

Error: `this.__invariant` is not `nothrow`
Error: `this.__invariant` is not `nothrow`
std/datetime/date.d(2344): Error: template instance
`std.datetime.date.Date.opBinary!"-"` error instantiating
std/datetime/date.d(2356):        instantiated from here: `opBinary!"-"`
Error: `this.__invariant` is not `nothrow`

--


More information about the Digitalmars-d-bugs mailing list