File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3707,7 +3707,8 @@ AST::ExpressionObsolete* Parser::WalkVariableInitializerExpression(const clang::
3707
3707
return WalkExpressionObsolete (Expr);
3708
3708
3709
3709
clang::Expr::EvalResult result;
3710
- if (Expr->EvaluateAsConstantExpr (result, c->getASTContext ()))
3710
+ if (!Expr->isValueDependent () &&
3711
+ Expr->EvaluateAsConstantExpr (result, c->getASTContext ()))
3711
3712
{
3712
3713
std::string s;
3713
3714
llvm::raw_string_ostream out (s);
Original file line number Diff line number Diff line change @@ -1535,6 +1535,9 @@ class QScopedPointer
1535
1535
}
1536
1536
};
1537
1537
1538
+ template <typename T>
1539
+ struct dependentVariable { static const size_t var = alignof (T); };
1540
+
1538
1541
class QObjectData {
1539
1542
};
1540
1543
You can’t perform that action at this time.
0 commit comments