[Issue 11805] New: Removal of Bool has critically broken expression evaluation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 23 01:39:37 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11805

           Summary: Removal of Bool has critically broken expression
                    evaluation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com


--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-12-23 01:39:36 PST ---
The following program:
--------------------------
void main()
{
        int i;

        i = 47;
        i = 1 && i;
        assert(i == 1);
}
--------------------------

now fails due to the wrong removal of Bool:

https://github.com/D-Programming-Language/dmd/commit/eb1158e0daf6099efbad37e89d5d9f512cab6401#commitcomment-4927724

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list