summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckExpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r--src/shared/cplusplus/CheckExpression.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp
index 42f1d85a71..17ac2ebfe9 100644
--- a/src/shared/cplusplus/CheckExpression.cpp
+++ b/src/shared/cplusplus/CheckExpression.cpp
@@ -404,3 +404,10 @@ bool CheckExpression::visit(LambdaExpressionAST *ast)
return false;
}
+bool CheckExpression::visit(BracedInitializerAST *ast)
+{
+ for (ExpressionListAST *it = ast->expression_list; it; it = it->next)
+ (void) semantic()->check(it->value, _scope);
+
+ return false;
+}