D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21514 - [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32
Summary: [ICE] cod1.d:4015: Assertion `retregs || !*pretregs' failed with -m32
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P1 major
Assignee: No Owner
URL:
Keywords: ice-on-valid-code, pull
Depends on:
Blocks:
 
Reported: 2020-12-29 22:02 UTC by Iain Buclaw
Modified: 2021-01-01 18:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2020-12-29 22:02:56 UTC
# 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 Iain Buclaw 2020-12-29 22:03:34 UTC
extern(C) and extern(D) compile just fine.
Comment 2 Dlang Bot 2020-12-29 23:25:17 UTC
@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 Dlang Bot 2020-12-30 10:34:25 UTC
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 Dlang Bot 2021-01-01 18:40:27 UTC
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