Using an old version of mingw-w64 (last updated May 2015),
calling sqrt(-1.0) would return NaN (the expected result).
After updating to the current version, it returns -1.0.
It looks like this bug was introduced by commit 6617eb.
Signed-off-by: Martin Whitaker <email@example.com>
Signed-off-by: Kai Tietz <firstname.lastname@example.org>
Signed-off-by: Jonathan Yong <email@example.com>
(cherry picked from commit a511b58278c51ba10ae613b9b68c8664219d090d)