[Issue 12164] Function returning ptrdiff_t.min in 64-bit returning 0 when -O is set.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 24 14:24:09 PDT 2014


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

--- Comment #11 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/44b9d2735e58833115fcf4fb7f3cc4ba524e9159
Fix Issue 12164 - Function returning ptrdiff_t.min in 64-bit returning 0 when
-O is set

The trick used to optimize ?const:const doesn't work when you can't actually
express the value as immediates.  They were silently truncated leading to
incorrect results.

Values were also truncated due to a typo.

https://github.com/D-Programming-Language/dmd/commit/f4a8858f5dd2cf8a46917bae5cebade9c786d007
Merge pull request #3805 from yebblies/issue12164

Fix Issue 12164 - Function returning ptrdiff_t.min in 64-bit returning 0 when
-O is set

--


More information about the Digitalmars-d-bugs mailing list