[Issue 11508] New: [REG 2.064] Wrong code with -O on x86_64 for char comparisons
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 12 20:39:59 PST 2013
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: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list