d: Merge upstream dmd c2274e56a (PR96250).
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 21 Jul 2020 17:32:54 +0000 (19:32 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 3 Aug 2020 02:40:18 +0000 (04:40 +0200)
commit442b5a661e312b27fc87f769834a2b58412a847a
tree493216f398cb16044a59d39fdebb97a6d683baef
parent7031087cd7d6cd07d18797b0cac90dc048103ed1
d: Merge upstream dmd c2274e56a (PR96250).

1. Fixes an ICE in the front-end if a struct symbol were to appear twice
in the compilation unit.

2. Fixes a rejects-valid bug in the front-end where `(symbol)' was being
resolved as a `var' expression, instead of `this.var'.

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

gcc/d/ChangeLog:

PR d/96250
* dmd/MERGE: Merge upstream dmd c2274e56a.
13 files changed:
gcc/d/dmd/MERGE
gcc/d/dmd/dstruct.c
gcc/d/dmd/expressionsem.c
gcc/d/dmd/parse.c
gcc/testsuite/gdc.test/compilable/b9490.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/ice14739.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail17492.d
gcc/testsuite/gdc.test/fail_compilation/ice21060.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/ice21060a/package.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/ice21060b/package.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/ice21060c/package.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/ice21060d/package.d [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable/b16278.d [new file with mode: 0644]