http://d.puremagic.com/issues/show_bug.cgi?id=9453
Summary: ice(symbol.c) with slice on temporary
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-02-05 10:06:50 PST ---
import std.string;
struct Foo {
this(string bar) { }
Foo opSlice(size_t start, size_t end) const {
return Foo();
}
size_t opDollar(int dim)() const if(dim == 0) { return 1; }
}
int main(string[] ) {
auto b = Foo("bar")[0..$];
return 0;
}
DMD 2.061 produces
Internal error: ..\ztc\symbol.c 1025
Could be related to #9209.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------