Added semantic checks for compound expressions.

This commit is contained in:
Erik Verbruggen
2010-02-04 16:31:29 +01:00
parent fd90c3503d
commit 6ca5f5f5f8
8 changed files with 74 additions and 27 deletions

View File

@@ -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;
}