From 49fb8870594ee17912b2a88acd627b66d90c081a Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 6 Oct 2009 12:53:05 +0200 Subject: Check ctor-initializers. --- src/shared/cplusplus/CheckDeclaration.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/shared/cplusplus/CheckDeclaration.cpp') diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 4b2604de40..b7143797ad 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -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) { -- cgit v1.2.1