From 6ca5f5f5f886449f88d1ff7085f640c46bbc8fb2 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 4 Feb 2010 16:31:29 +0100 Subject: Added semantic checks for compound expressions. --- src/shared/cplusplus/CheckExpression.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/shared/cplusplus/CheckExpression.cpp') diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index c971204c2e..748fa9c901 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -289,12 +289,13 @@ bool CheckExpression::visit(ThisExpressionAST *) bool CheckExpression::visit(CompoundExpressionAST *ast) { - return true; // ### + _fullySpecifiedType = semantic()->check(ast->compoundStatement, _scope); + return false; } bool CheckExpression::visit(NestedExpressionAST *ast) { - FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope); + _fullySpecifiedType = semantic()->check(ast->expression, _scope); return false; } -- cgit v1.2.1