Bug 19608 – [ICE] dmd/backend/cod1.d(3826): Assertion `0' failed.

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-01-23T17:47:40Z
Last change time
2019-03-10T13:56:35Z
Keywords
ice-on-invalid-code
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2019-01-23T17:47:40Z
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
Comment #1 by ibuclaw — 2019-01-27T01:13:55Z
This is invalid code an error should be issued, similar to: auto a = *&f;
Comment #2 by github-bugzilla — 2019-01-27T23:30:38Z
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 <[email protected]>
Comment #3 by dlang-bot — 2019-03-10T13:56:35Z
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