[Issue 15316] struct float fields not correctly initialised on x64

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 9 05:50:00 PDT 2016


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

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/3bed8dfd33dffb40dc2fbb5850ebc26bccc3888f
fix gdc-dmd test - remove the workound for Issue 15316

- we can't really solve Issue 15316 w/ signaling NaNs
  b/c any optimization, copying et.al. might turn signaling into
  quiet NaNs, therefor we want to solve Issue 15316 by switching
  Float.init to use quiet NaNs
- the workaround depends on a specific dmd bug (see #6163)
  that looses SNaNs when writing struct initializers but keeps
  them for Float.init
- this workaround might not be portable to GDC/LDC and
  will easily break w/ slightly different dmd optimizations
  (it's responsible for the test failure of the gdc-built dmd)
- this PR will reopen https://issues.dlang.org/show_bug.cgi?id=11135

this partially reverts commit 0efa1d3bf92bcaa6c4a99cad0b574185a537906a

https://github.com/dlang/phobos/commit/50a264628f411d41acec522e0f70fe6677ffd0c8
Merge pull request #4844 from MartinNowak/revert_3797

fix gdc-dmd test - remove the workound for Issue 15316

--


More information about the Digitalmars-d-bugs mailing list