Commit af1b88ee by Iain Buclaw

re PR d/90560 (ICE in visit, at d/dmd/dcast.c:1872)

	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
parent 87dda41e
b0cd591770fefb4db6eaba89b7a548ef1e980f5c c6887d9bbbe7b68e03ba3bccbf61432c1b369386
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the dlang/dmd repository. merge done from the dlang/dmd repository.
...@@ -4134,8 +4134,7 @@ Type *TypeSArray::semantic(Loc loc, Scope *sc) ...@@ -4134,8 +4134,7 @@ Type *TypeSArray::semantic(Loc loc, Scope *sc)
* when the bottom of element type is opaque. * when the bottom of element type is opaque.
*/ */
} }
else if (tbn->isintegral() || else if (tbn->isTypeBasic() ||
tbn->isfloating() ||
tbn->ty == Tpointer || tbn->ty == Tpointer ||
tbn->ty == Tarray || tbn->ty == Tarray ||
tbn->ty == Tsarray || tbn->ty == Tsarray ||
......
// 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";
// 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";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment