Skip to content

Commit

Permalink
Merge v2.088.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Sep 3, 2019
1 parent c5dc020 commit 3e82f74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dmd/expressionsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -6087,7 +6087,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
}

if (v && (v.isDataseg() || // fix https://issues.dlang.org/show_bug.cgi?id=8238
!v.needThis())) // fix https://issues.dlang.org/show_bug.cgi?id=17258
(!v.needThis() && v.semanticRun > PASS.init))) // fix https://issues.dlang.org/show_bug.cgi?id=17258
{
// (e1, v)
checkAccess(exp.loc, sc, exp.e1, v);
Expand Down
1 change: 1 addition & 0 deletions dmd/staticcond.d
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ bool evalStaticCondition(Scope* sc, Expression original, Expression e, out bool

e = e.expressionSemantic(sc);
e = resolveProperties(sc, e);
e = e.toBoolean(sc);

sc = sc.endCTFE();
e = e.optimize(WANTvalue);
Expand Down
2 changes: 1 addition & 1 deletion runtime/druntime
2 changes: 1 addition & 1 deletion tests/d2/dmd-testsuite

0 comments on commit 3e82f74

Please sign in to comment.