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 26e4ffb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 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

0 comments on commit 26e4ffb

Please sign in to comment.