//////////// 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
Covered by DMD's PR https://github.com/dlang/dmd/pull/6434
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
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
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