[Issue 23514] Incorrect compilation when adding a 64-bit constant to a link-time address
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 22 02:42:23 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23514
--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #14904 "merge stable" was merged into master:
- cd946d37c46aa2d860ee495ef22ead00cac2e783 by Zachary Yedidia:
Fix issue 23514 - Incorrect compilation when adding a 64-bit constant to a
link-time address (#14657)
* Fix issue 23514 - Incorrect compilation when adding a 64-bit constant to a
link-time address
The current cast to int causes a loss of precision, which can result in
incorrect compilation.
* Add test23514.d
* Enable optimization in test
* Improve test case
* Use ulong instead of size_t
* Restrict test to 64-bit targets
* Re-enable test for 32-bit targets
* Disable test for win64 and add comment
https://github.com/dlang/dmd/pull/14904
--
More information about the Digitalmars-d-bugs
mailing list