Bug 16598 – [REG2.069] ICE with void ternary + finalizers

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-05T23:31:00Z
Last change time
2017-01-16T23:26:36Z
Keywords
ice
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2016-10-05T23:31:58Z
//////////// test.d /////////// struct S { this(int) {} ~this() {} } int g(S a, S b) { return 1; } void main() { true ? g(S(), S(1)) : {}(); } /////////////////////////////// Produces: Internal error: backend/cod1.c 1654 Introduced in https://github.com/D-Programming-Language/dmd/pull/5003
Comment #1 by bitter.taste — 2017-01-12T20:50:58Z
Comment #2 by github-bugzilla — 2017-01-14T19:55:05Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b6ac3bae6fe21fd5c060e9f8bad99e2d28e882a6 Fix issue 16598 - Explicitly discard the exp. value in void CondExp https://github.com/dlang/dmd/commit/f7dc4fdc6a3a776a4bc4499fa2edf305f2c3a19d Merge pull request #6434 from LemonBoy/b16598 Fix issue 16598 - Explicitly discard the exp. value in void CondExp
Comment #3 by github-bugzilla — 2017-01-15T01:21:07Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b6ac3bae6fe21fd5c060e9f8bad99e2d28e882a6 Fix issue 16598 - Explicitly discard the exp. value in void CondExp https://github.com/dlang/dmd/commit/f7dc4fdc6a3a776a4bc4499fa2edf305f2c3a19d Merge pull request #6434 from LemonBoy/b16598
Comment #4 by github-bugzilla — 2017-01-16T23:26:36Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b6ac3bae6fe21fd5c060e9f8bad99e2d28e882a6 Fix issue 16598 - Explicitly discard the exp. value in void CondExp https://github.com/dlang/dmd/commit/f7dc4fdc6a3a776a4bc4499fa2edf305f2c3a19d Merge pull request #6434 from LemonBoy/b16598