d: Fix a couple of ICEs found in the dmd front-end (PR97842)
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 17 Nov 2020 09:48:41 +0000 (10:48 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 18 Nov 2020 09:22:06 +0000 (10:22 +0100)
commit27d8c3516b67c0f5a8fe8970d0558ee3b97e8281
tree915f1bb7526195a5ea70a21f4779fe17d70efdaf
parentfa9091ad93b2ec6f2580e9f9c7de799fa404cf2e
d: Fix a couple of ICEs found in the dmd front-end (PR97842)

- Segmentation fault on incomplete static if.
- Segmentation fault resolving typeof() expression when gagging is on.

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

gcc/d/ChangeLog:

PR d/97842
* dmd/MERGE: Merge upstream dmd b6a779e49
gcc/d/dmd/MERGE
gcc/d/dmd/cond.c
gcc/d/dmd/mtype.c
gcc/testsuite/gdc.test/fail_compilation/fail18970.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/test21164a.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/test21164b.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/test21164c.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/test21164d.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/test21164.d [new file with mode: 0644]