]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Fix ICE during error recovery in semantic pass
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 23 Jun 2020 20:43:27 +0000 (22:43 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 26 Jun 2020 13:45:39 +0000 (15:45 +0200)
commit95f5dc7f70b09def9f2002f5cbef986b21d456e3
tree51d05810e2a36218278f6105663145b7d7587db3
parent3e1af1d0be13e4615e001fb19e294c8d28d69f94
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)
gcc/d/dmd/expressionsem.c
gcc/testsuite/gdc.dg/pr95250.d [new file with mode: 0644]