Merge dmd upstream 237ca3fbe
authorIain Buclaw <ibuclaw@gcc.gnu.org>
Mon, 17 Dec 2018 18:32:31 +0000 (18:32 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Mon, 17 Dec 2018 18:32:31 +0000 (18:32 +0000)
commit4d814b69890171b7d742fabd966e5167b222cfd0
treef23ff2741fedcf6d02736a2b3dc9e7ca2299f01c
parent22b04f05ab8e05707a031a5b6dfc1eb72d056957
Merge dmd upstream 237ca3fbe

Backports a fix where a bad cast to TypeFunction resulted in memory
corruption.  The logic in the function semantic has been fixed, and
casts have been replaced with a function call to always check the
front-end AST node value.

Reviewed-on: https://github.com/dlang/dmd/pull/9054

From-SVN: r267207
gcc/d/dmd/MERGE
gcc/d/dmd/dclass.c
gcc/d/dmd/dstruct.c
gcc/d/dmd/func.c
gcc/d/dmd/mtype.c
gcc/d/dmd/mtype.h