Commit 93cdff18 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Visit the declarator's initializer.

parent 25b45081
......@@ -128,13 +128,11 @@ bool CheckDeclarator::visit(DeclaratorAST *ast)
accept(ast->postfix_declarators);
accept(ast->core_declarator);
// ### check the initializer
// FullySpecifiedType exprTy = semantic()->check(ast->initializer, _scope);
if (ast->initializer) {
FullySpecifiedType exprTy = semantic()->check(ast->initializer, _scope);
if (ast->initializer && _fullySpecifiedType) {
if (Function *funTy = _fullySpecifiedType->asFunctionType()) {
if (Function *funTy = _fullySpecifiedType->asFunctionType())
funTy->setPureVirtual(true);
}
}
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment