Skip to content

Commit cd750c9

Browse files
committed
fix tests
1 parent 1d1a635 commit cd750c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4490,7 +4490,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
44904490
// If evaluateVarDeclInit sees a constexpr-unknown variable, it returns
44914491
// a null BaseVal. Any constexpr-unknown variable seen here is an error:
44924492
// we can't access a constexpr-unknown object.
4493-
if (!BaseVal) {
4493+
if (AK != clang::AK_Dereference && !BaseVal) {
44944494
Info.FFDiag(E, diag::note_constexpr_access_unknown_variable, 1)
44954495
<< AK << VD;
44964496
Info.Note(VD->getLocation(), diag::note_declared_at);

0 commit comments

Comments
 (0)