www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11805] New: Removal of Bool has critically broken expression evaluation

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bugzilla digitalmars.com


--- Comment #0 from Walter Bright <bugzilla 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: -------
Dec 23 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11805


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, wrong-code
                 CC|                            |yebblies gmail.com


--- Comment #1 from yebblies <yebblies gmail.com> 2013-12-23 21:18:28 EST ---
https://github.com/D-Programming-Language/dmd/pull/3015

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 23 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11805



--- Comment #2 from github-bugzilla puremagic.com 2013-12-23 05:36:11 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/933d1470975a2d7e9d4cf14d5d5763179bcf3128
Add test case for Issue 11805 - Removal of Bool has critically broken
expression evaluation

https://github.com/D-Programming-Language/dmd/commit/9adceed4758e253de98b75e430264ba232ac7ee6
Merge pull request #3015 from yebblies/issue11805

Issue 11805 - Removal of Bool has critically broken expression evaluation

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 23 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11805


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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