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::
37073707 return WalkExpressionObsolete (Expr);
37083708
37093709 clang::Expr::EvalResult result;
3710- if (Expr->EvaluateAsConstantExpr (result, c->getASTContext ()))
3710+ if (!Expr->isValueDependent () &&
3711+ Expr->EvaluateAsConstantExpr (result, c->getASTContext ()))
37113712 {
37123713 std::string s;
37133714 llvm::raw_string_ostream out (s);
Original file line number Diff line number Diff line change @@ -1535,6 +1535,9 @@ class QScopedPointer
15351535 }
15361536};
15371537
1538+ template <typename T>
1539+ struct dependentVariable { static const size_t var = alignof (T); };
1540+
15381541class QObjectData {
15391542};
15401543
You can’t perform that action at this time.
0 commit comments