[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:31:10 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21882
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Reduced test that compiles with -preview=dip1000, but not dip1021.
---
@property deleteme()
{
char[] cache;
buildPath(cache);
}
char[] buildPath(char[][])
{
struct ByCodeUnitImpl
{
auto opIndex(size_t ) { }
}
assert(isRandomAccessRange!ByCodeUnitImpl);
return [];
}
char[] buildPath(C)(C[][] paths...)
{
return buildPath(paths);
}
enum isRandomAccessRange(R) = is(typeof(lvalueOf!R[1]));
ref T lvalueOf(T)();
---
--
More information about the Digitalmars-d-bugs
mailing list