]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Merge upstream dmd c2274e56a (PR96250).
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 21 Jul 2020 17:32:54 +0000 (19:32 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:20:37 +0000 (13:20 -0300)
commit8dfc03f41ce381cde0f944173431ffb4402ea19f
treee8780bc806356cf51096de687055aa31bbea50d8
parentcf91262edd845d97c88d112fa34adbfcda803d4e
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]