This stopped working in dmd 1.062 (maybe also affects D2):
void main() {
int[] a, b;
if (a && b) {}
}
rt.d(3): Error: Array operation a && b not implemented
This prevents compilation of at least one (Linux specific) module with Tango (in Tango trunk).
Comment #1 by clugdbug — 2010-06-23T00:14:49Z
This one is trivial.
PATCH:
e2ir.c, BinExp::toElemBin(), line 2000.
----------
if ((tb1->ty == Tarray || tb1->ty == Tsarray) &&
(tb2->ty == Tarray || tb2->ty == Tsarray) &&
- op != OPeq
+ op != OPeq && op != OPandand && op != OPoror
)
{
error("Array operation %s not implemented", toChars());
return el_long(type->totym(), 0); // error recovery
}