Spurious NaNs produced by trig functions with valid inputs on Windows GNU toolchains #65658
Labels
C-bug
Category: This is a bug.
O-windows-gnu
Toolchain: GNU, Operating system: Windows
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
I'm unsure what the root cause of this is, and have been unable to reproduce it in a minimal project for many months, but every so often trig functions such as
sin/cos/sin_cos
will produceNaN
values on perfectly valid inputs, only when using the Windows GNU toolchains.In a project I have these lines:
which panics with this message:
on
nightly-x86_64-pc-windows-gnu (1.40.0-nightly (3a9abe3f0 2019-10-15))
The program is complex but deterministic, and produces no such issues on the Windows MSVC toolchains.
This occurs with no
RUSTFLAGS
, and with the Cargo.toml config of:The text was updated successfully, but these errors were encountered: