Bug 11805 – Removal of Bool has critically broken expression evaluation

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-23T01:39:00Z
Last change time
2013-12-23T05:45:22Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2013-12-23T01:39:36Z
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
Comment #1 by yebblies — 2013-12-23T02:18:28Z
Comment #2 by github-bugzilla — 2013-12-23T05:36:11Z
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