[Issue 21403] New: [ICE] dmd/backend/cgcs.d:375: Assertion `0' failed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 18 15:43:29 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21403
Issue ID: 21403
Summary: [ICE] dmd/backend/cgcs.d:375: Assertion `0' failed.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
This test ICE's the dmd backend.
---
auto mul11ret3(T)(ref T s)
{
s ~= 11;
return [3];
}
auto test(int[] val)
{
(val ~= mul11ret3(val)) ~= 7;
return val;
}
void main()
{
static assert(test([2]) == [2, 11, 3, 7]);
assert(test([2]) == [2, 11, 3, 7]);
}
---
& el:0x55f78b3b1ce0 cnt=0 cs=0 & TY* 0x55f78b3b1c20
el:0x55f78b3b1c20 cnt=0 cs=0 call TYucent 0x55f78b3b1bc0 0x55f78b3b19d0
el:0x55f78b3b1bc0 cnt=0 cs=0 var TYC func _d_arrayappendT
el:0x55f78b3b19d0 cnt=0 cs=0 param TYvoid 0x55f78b3b1970 0x55f78b3b17b0
el:0x55f78b3b1970 cnt=0 cs=0 param TYvoid 0x55f78b3b1390 0x55f78b3b13f0
el:0x55f78b3b1390 cnt=0 cs=0 call TYucent 0x55f78b3b1190 0x55f78b3b1310
el:0x55f78b3b1190 cnt=0 cs=0 var TYD func
_D3bug__T9mul11ret3TAiZQoFNaNbNfKQnZQq
el:0x55f78b3b1310 cnt=0 cs=0 relconst TY* 0+& val
el:0x55f78b3b13f0 cnt=0 cs=0 relconst TY* 0+& val
el:0x55f78b3b17b0 cnt=0 cs=0 var TY* _D11TypeInfo_Ai6__initZ
dmd: src/dmd/backend/cgcs.d:375: Assertion `0' failed.
Aborted
--
More information about the Digitalmars-d-bugs
mailing list