[Issue 3496] ICE(cgelem.c, optimizer bug) cast(void *)(x&1)== null.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 13 12:42:03 PST 2009


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |1.00
            Summary|ICE ..\ztc\cgelem.c 3387    |ICE(cgelem.c, optimizer
                   |                            |bug) cast(void *)(x&1)==
                   |                            |null.


--- Comment #3 from Don <clugdbug at yahoo.com.au> 2009-11-13 12:42:02 PST ---
Reduced test case. Compile with -O (-inline not required). Not a regression;
fails on DMD0.165.

bool foo() {
    int x;
    return cast(void*) (x & 1) == null;
}

Internal error: ztc\cgelem.c 3387

Really peculiar thing is that replacing & with | or ^ makes the bug disappear.

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