[Issue 15542] pure function with no argument returning different values (with void-initialized static array)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 5 18:53:19 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=15542
ag0aep6g <ag0aep6g at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #8 from ag0aep6g <ag0aep6g at gmail.com> ---
This issue was closed because the presented program was invalid at the time. It
was invalid because using the value of an uninitialized variable used to
trigger undefined behavior. Walter has since changed the spec, allowing such
use of uninitialized variables [1].
The presented program does not trigger undefined behavior anymore, at least not
in the way it did when the issue was closed. So the reason for closing is no
longer true. Reopening.
[1] https://github.com/dlang/dlang.org/pull/2260
--
More information about the Digitalmars-d-bugs
mailing list