gcc/d/ChangeLog:
* dmd/MERGE: Merge upstream dmd
8db14cf846.
Reviewed-on: https://github.com/dlang/dmd/pull/21029
-fde0f8c40a1b8eb78c3485cb0e940035bfe6fb00
+8db14cf8467ca25256904d51169b176c9c89afb1
The first line of this file holds the git revision number of the last
merge done from the dlang/dmd repository.
if (rvalue || !e1.isLvalue())
return false;
return (to.ty == Tsarray && (e1.type.ty == Tvector || e1.type.ty == Tsarray)) ||
+ (to.ty == Taarray && e1.type.ty == Taarray) ||
e1.type.mutableOf.unSharedOf().equals(to.mutableOf().unSharedOf());
}
--- /dev/null
+// https://github.com/dlang/dmd/issues/21020
+
+shared struct Queue {
+ int[int] map;
+}
+
+void main() {
+ auto queue = Queue();
+ (cast(int[int]) queue.map)[1] = 2;
+ assert(queue.map[1] == 2);
+}