[Issue 9453] ice(symbol.c) with slice on temporary
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 5 20:04:44 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9453
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice, pull, rejects-valid
Platform|x86 |All
OS/Version|Windows |All
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-05 20:04:40 PST ---
Indexing has same problem.
struct Foo {
this(string bar) {}
Foo opIndex(size_t index) const {
return Foo();
}
size_t opDollar(int dim)() const if(dim == 0) { return 1; }
}
int main(string[] ) {
auto b = Foo("bar")[$-1];
return 0;
}
Pull request:
https://github.com/D-Programming-Language/dmd/pull/1627
--
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