https://d.puremagic.com/issues/show_bug.cgi?id=11508
Summary: [REG 2.064] Wrong code with -O on x86_64 for char
comparisons
Product: D
Version: D2
Platform: x86_64
OS/Version: All
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2013-11-13
06:39:58 EET ---
bool isWordChar(char c)
{
return c=='_' || c=='-' || c=='+' || c=='.';
}
void main()
{
assert(isWordChar('_'));
}
"dmd -O -m64 -run test.d" will cause the above assert to trip.
Happens with 2.064.2 and git HEAD, doesn't happen with 2.063.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------