Ahh, looks like it is leaking PowExp::toElem - didn't notice this as I have it implemented in GDC.
Best thing to immediately do is implement the missing methods as stubs (I was intending to move onto backend support and add constant folding/ctfe support for ^^ operations. :)
Comment #5 by bearophile_hugs — 2011-09-26T04:28:19Z
(In reply to comment #2)
> Can you see if you can break things in any way after this commit?
Now this code doesn't crash DMD:
void main() {
auto _ = [1][] ^^ 2;
}
But this code doesn't work yet:
import std.math;
void main() {
int[5] a, b;
b[] = a[] ^^ 2;
}
It gives:
...\dmd2\src\phobos\std\math.d(58): Error: module math is in file 'core\stdc\math.d' which cannot be read
Comment #6 by bearophile_hugs — 2011-09-26T09:48:04Z
Sorry, my Phobos was badly set. Things work now.
Comment #7 by bearophile_hugs — 2011-09-26T09:48:51Z