Bug 4314 – Regression(1.062): Expression array1 && array2 doesn't compile

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-06-14T13:28:00Z
Last change time
2015-06-09T05:11:54Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
nfxjfg

Comments

Comment #0 by nfxjfg — 2010-06-14T13:28:22Z
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 }
Comment #2 by bugzilla — 2010-06-27T15:59:34Z