Minimal test --- import core.stdc.stdarg; void f(int) {} void g(...) {} void h() { g(*&f); } --- When ENABLE_RELEASE=1 Segmentation fault When ENABLE_DEBUG=1 dmd: dmd/backend/cod1.d:3826: Assertion `0' failed. Aborted
This is invalid code an error should be issued, similar to: auto a = *&f;
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/6bedb35e56584ebd3e2c7d597f2fc824ef442963 fix Issue 19608 - [ICE] dmd/backend/cod1.d(3826): Assertion `0' failed. https://github.com/dlang/dmd/commit/895b3ee96c5cde92ef8a990c84de554a99b4a801 Merge pull request #9299 from ibuclaw/issue19608 fix Issue 19608 - [ICE] dmd/backend/cod1.d(3826): Assertion `0' failed. merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
dlang/dmd pull request #9437 "[dmd-cxx] fix Issue 19608 - [ICE] dmd/backend/cod1.d(3826): Assertion `0' failed." was merged into dmd-cxx: - 7e517f18a3cfb49834d63d0c9e7b9d51a60a2e37 by Iain Buclaw: fix Issue 19608 - [ICE] dmd/backend/cod1.d(3826): Assertion `0' failed. https://github.com/dlang/dmd/pull/9437