http://d.puremagic.com/issues/show_bug.cgi?id=9453
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice, pull, rejects-valid Platform|x86 |All OS/Version|Windows |All --- Comment #1 from Kenji Hara <[email protected]> 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: -------
