Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling with fastmath std::isnan(value)^flipped always evaluates to false #815

Open
crroush opened this issue Sep 29, 2023 · 0 comments
Open

Comments

@crroush
Copy link

crroush commented Sep 29, 2023

Description

warning: comparison with NaN always evaluates to false in fast floating point modes [-Wtautological-constant-compare]
return std::isnan(value) ^ flipped

Steps to reproduce

include doctest.h
enable fastmath
using intel 2022.2.1 oneapi ICPX compiler

Extra information

  • doctest version: 2.4.11
  • Operating System: centos 7
  • Compiler+version: icpx 2022.2.1 (oneapi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant