]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/d/dmd/mtype.c
PR d/90650
[thirdparty/gcc.git] / gcc / d / dmd / mtype.c
index 058738ec8252f2a6d41df4ab8ba53962591f7930..2562f364b499f7e0f82fb195475ea31e127b2db2 100644 (file)
@@ -4468,6 +4468,8 @@ Expression *TypeDArray::dotExp(Scope *sc, Expression *e, Identifier *ident, int
         }
         if (e->op == TOKnull)
             return new IntegerExp(e->loc, 0, Type::tsize_t);
+        if (checkNonAssignmentArrayOp(e))
+            return new ErrorExp();
         e = new ArrayLengthExp(e->loc, e);
         e->type = Type::tsize_t;
         return e;