Bug 21514 – [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2020-12-29T22:02:56Z
Last change time
2021-01-01T18:40:27Z
Keywords
ice-on-valid-code, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2020-12-29T22:02:56Z
# dmd -m32 -c test.d extern(C++) cdouble czero() { return 0+0i; } extern(C++) creal czerol() { return 0+0Li; } void main() { auto a = czero(); auto b = czerol(); }
Comment #1 by ibuclaw — 2020-12-29T22:03:34Z
extern(C) and extern(D) compile just fine.
Comment #2 by dlang-bot — 2020-12-29T23:25:17Z
@ibuclaw updated dlang/dmd pull request #12072 "fix Issue 21514 - [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32" fixing this issue: - fix Issue 21514 - [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32 https://github.com/dlang/dmd/pull/12072
Comment #3 by dlang-bot — 2020-12-30T10:34:25Z
dlang/dmd pull request #12072 "fix Issue 21514 - [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32" was merged into stable: - c6fd0913689fab0b6d17295eb30c12b688e3ed78 by Iain Buclaw: fix Issue 21514 - [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32 https://github.com/dlang/dmd/pull/12072
Comment #4 by dlang-bot — 2021-01-01T18:40:27Z
dlang/dmd pull request #12088 "merge stable" was merged into master: - f5f98d337ed6f79ee36e63425845f8de106c08cb by Iain Buclaw: fix Issue 21514 - [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32 https://github.com/dlang/dmd/pull/12088