[Issue 9387] Compiler switch -O changes behavior of correct code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 29 23:51:06 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9387
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
OS/Version|Mac OS X |All
--- Comment #13 from Don <clugdbug at yahoo.com.au> 2013-01-29 23:51:04 PST ---
A reduced test case for the ICE:
import std.math : abs;
void bug9387()
{
double x = 3;
double r = (x-2.1)*0.1;
double q = (x-2.1)*0.1 - r;
double p = (x-2.1)*q - (x-2.1)*r;
if (q > 0.0) p = -p;
if (abs(p) >= q ) { }
}
---
dmd -O -m64 bug.d
Internal error: backend/cgcod.c 769
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list