[Issue 21882] [ICE][dip1021] src/dmd/escape.d(1850): Assertion failure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 30 12:32:30 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21882
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #1)
> Reduced test that compiles with -preview=dip1000, but not dip1021.
Further reduced:
---
void buildPath(char[][])
{
struct ByCodeUnitImpl
{
auto opIndex(size_t ) { }
}
assert(isRandomAccessRange!ByCodeUnitImpl);
}
enum isRandomAccessRange(R) = is(typeof(lvalueOf!R[1]));
ref T lvalueOf(T)();
---
--
More information about the Digitalmars-d-bugs
mailing list