Bug 20111

Summary: real_nan and non-ASCII character sets
Product: gcc Reporter: Joseph S. Myers <jsm28>
Component: middle-endAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: gcc-bugs
Priority: P2 Keywords: accepts-invalid, rejects-valid
Version: 4.0.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2005-12-24 19:45:39

Description Joseph S. Myers 2005-02-20 19:27:44 UTC
real_nan presumes that its string argument is in the host character set,
so __builtin_nan does not work in the presence of -fexec-charset
making the target character set incompatible with the host character set.
It should allow for the argument being in the target character set.
(Other approaches such as special parsing so as not to translate the
string argument to the target character set do not work since this
function should also be used for a plain "nan" built-in function,
bug 19984.)
Comment 1 Andrew Pinski 2005-02-21 21:29:23 UTC
Confirmed.