[Issue 22390] New: Compiler crash when iterating empty array of bottom types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 15 14:25:04 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22390
Issue ID: 22390
Summary: Compiler crash when iterating empty array of bottom
types
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: Ajieskola at gmail.com
These both cause a compiler crash on latest master:
---
int main()
{ noreturn[] empty;
int val;
foreach(el; empty) val++;
return val;
}
---
---
int main()
{ noreturn[] empty;
return empty == empty;
}
---
Also tested the latter on 2.097.2, which crashes too.
Issue 21956 is likely to be related.
--
More information about the Digitalmars-d-bugs
mailing list