[Bug d/95250] [D] ICE instead of error when trying to use bad template type inside template

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 26 13:46:27 GMT 2020


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

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

https://gcc.gnu.org/g:95f5dc7f70b09def9f2002f5cbef986b21d456e3

commit r10-8373-g95f5dc7f70b09def9f2002f5cbef986b21d456e3
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Tue Jun 23 22:43:27 2020 +0200

    d: Fix ICE during error recovery in semantic pass

    Fixes a regression caused by an incomplete backport of converting the
    Expression semantic pass to a Visitor.

    gcc/d/ChangeLog:

            PR d/95250
            * dmd/expressionsem.c (class ExpressionSemanticVisitor): Return
early
            if error occurred during semantic of DivExp.

    gcc/testsuite/ChangeLog:

            PR d/95250
            * gdc.dg/pr95250.d: New test.

    (cherry picked from commit 1d19c9cd3dd99ba8885c0fc93223918399f73939)


More information about the Gcc-bugs mailing list