[Issue 1573] ICE when using -O flag and static if's

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 12 09:04:29 PDT 2007


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





------- Comment #1 from jeffd at gwava.com  2007-10-12 11:04 -------
Little update, 

changing the _keyCompare function to the following removes the ICE:

private bool _keyCompare(T first, T second)
{
        static if (is(T : Object))
                return cast(bool)(first ? first == second : second is null);
        if (first == second)
                return true;
       return false;
}       


-- 



More information about the D.gnu mailing list