[Issue 1624] New: test of bool doesn't hold always

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 29 01:47:25 PDT 2007


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

           Summary: test of bool doesn't hold always
           Product: D
           Version: 1.022
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: davidl at 126.com


void main()
{
        union e{
                bool k;
                Object v;
        }
        e m;
        m.v = new Object;
        assert(m.k);
        assert((!m.k) == false);   // assertion failure
}


-- 



More information about the Digitalmars-d-bugs mailing list