Thread overview
[Issue 13719] std.datetime no longer compiles when trivial destructor is added
Nov 12, 2014
Walter Bright
Nov 12, 2014
Martin Nowak
Nov 13, 2014
Vladimir Panteleev
Nov 17, 2014
David Nadlinger
Dec 08, 2021
Stanislav Blinov
November 12, 2014
https://issues.dlang.org/show_bug.cgi?id=13719

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--- Comment #1 from hsteoh@quickfur.ath.cx ---
I don't understand, why is this a Phobos bug rather than a dmd bug?

--
November 12, 2014
https://issues.dlang.org/show_bug.cgi?id=13719

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
(In reply to hsteoh from comment #1)
> I don't understand, why is this a Phobos bug rather than a dmd bug?

Don't know which it is until it is reduced.

--
November 12, 2014
https://issues.dlang.org/show_bug.cgi?id=13719

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
For some reason it only occurs on Windows.

--
November 13, 2014
https://issues.dlang.org/show_bug.cgi?id=13719

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com

--
November 17, 2014
https://issues.dlang.org/show_bug.cgi?id=13719

David Nadlinger <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@klickverbot.at
          Component|Phobos                      |DMD

--- Comment #4 from David Nadlinger <code@klickverbot.at> ---
I don't see why adding a trivial destructor should break the piece of Phobos code in question (it doesn't use anything that explicitly checks for an elaborate dtor), so it's likely a DMD bug.

--
December 08, 2021
https://issues.dlang.org/show_bug.cgi?id=13719

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

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

--- Comment #5 from Stanislav Blinov <stanislav.blinov@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`

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

--- Comment #6 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18912

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--