[Issue 6096] optimizer assert on cdouble to bool conversion

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 23 23:36:09 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6096


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


--- Comment #3 from Rainer Schuetze <r.sagitario at gmx.de> 2011-10-23 23:35:04 PDT ---
Considering the patch, I realized that

double c = 0.5;

void main()
{
    assert((c ? 0 : 1) == 0);
}

runs fine when compiled without -O, but asserts with -O.

-- 
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