diff options
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckExpression.cpp | 7 |
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; +} |