https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97842

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain Buclaw
<ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:7e6dbe4e571a375330beb4266813006dc474b716

commit r10-9042-g7e6dbe4e571a375330beb4266813006dc474b716
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Tue Nov 17 10:48:41 2020 +0100

    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.

    gcc/d/ChangeLog:

            PR d/97842
            * dmd/cond.c (StaticIfCondition::include): Return error if
condition
            expression is unset.
            * dmd/mtype.c (TypeTypeof::resolve): Return error if scope is
unset.

    gcc/testsuite/ChangeLog:

            PR d/97842
            * gdc.test/fail_compilation/fail18970.d: New test.
            * gdc.test/fail_compilation/imports/test21164a.d: New test.
            * gdc.test/fail_compilation/imports/test21164b.d: New test.
            * gdc.test/fail_compilation/imports/test21164c.d: New test.
            * gdc.test/fail_compilation/imports/test21164d.d: New test.
            * gdc.test/fail_compilation/test21164.d: New test.

    (cherry picked from commit 27d8c3516b67c0f5a8fe8970d0558ee3b97e8281)

Reply via email to