Check ctor-initializers.

This commit is contained in:
Roberto Raggi
2009-10-06 12:53:05 +02:00
parent 44f224ac53
commit 49fb887059
2 changed files with 8 additions and 0 deletions

View File

@@ -332,6 +332,13 @@ bool CheckDeclaration::visit(FunctionDefinitionAST *ast)
return false;
}
bool CheckDeclaration::visit(MemInitializerAST *ast)
{
(void) semantic()->check(ast->name, _scope);
FullySpecifiedType ty = semantic()->check(ast->expression, _scope);
return false;
}
bool CheckDeclaration::visit(LinkageBodyAST *ast)
{
for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) {