gcc "Not a Number" definition changed in RHEL
Issue
gcc "Not a Number" definition has changed from Red Hat Enterprise Linux 4 to Red Hat Enterprise Linux 5 and 6.
float f=sqrt(-1)
on RHEL 4 results in
f=nan
on RHEL 5 or RHEL 6
f=-nan
Environment
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.