PR d/90560
d/dmd: Merge upstream dmd
c6887d9bb
Fixes segmentation fault in castTo::CastTo::visit.
Reviewed-on: https://github.com/dlang/dmd/pull/10007
From-SVN: r272348
-b0cd591770fefb4db6eaba89b7a548ef1e980f5c
+c6887d9bbbe7b68e03ba3bccbf61432c1b369386
The first line of this file holds the git revision number of the last
merge done from the dlang/dmd repository.
* when the bottom of element type is opaque.
*/
}
- else if (tbn->isintegral() ||
- tbn->isfloating() ||
+ else if (tbn->isTypeBasic() ||
tbn->ty == Tpointer ||
tbn->ty == Tarray ||
tbn->ty == Tsarray ||
--- /dev/null
+// PERMUTE_ARGS:
+/*
+---
+fail_compilation/fail19890a.d(8): Error: `void[/^[0-9]+(LU)?$/]` size 1 * /^[0-9]+$/ exceeds 0x7fffffff size limit for static array
+---
+*/
+void[] f = cast(void[-1]) "a";
--- /dev/null
+// PERMUTE_ARGS:
+/*
+---
+fail_compilation/fail19890b.d(8): Error: `void[/^[0-9]+(LU)?$/]` size 1 * /^[0-9]+$/ exceeds 0x7fffffff size limit for static array
+---
+*/
+void[] f = cast(void[-2]) "a";