https://issues.dlang.org/show_bug.cgi?id=21882
Issue ID: 21882
Summary: [ICE][dip1021] src/dmd/escape.d(1850): Assertion
failure
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Reduced test compiled with: -preview=dip1021
---
void byCodeUnit()
{
struct ByCodeUnitImpl
{
auto opIndex(size_t ) {}
}
isRandomAccessRange!ByCodeUnitImpl;
}
enum isRandomAccessRange(R) = lvalueOf!R[1];
ref T lvalueOf(T)();
---
Going to make another reduction that works with -dip1000 but not -dip1021.
--