[Issue 9453] New: ice(symbol.c) with slice on temporary
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 5 10:06:51 PST 2013
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: nobody at puremagic.com
ReportedBy: matthias.dondorff at gmx.de
--- Comment #0 from matthias.dondorff at gmx.de 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: -------
More information about the Digitalmars-d-bugs
mailing list