Skip to content
Snippets Groups Projects
Commit d1bbbced authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check the declarator's initializer.

parent 97d162e8
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,11 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast)
else if (ty.isTypedef())
symbol->setStorage(Symbol::Typedef);
if (it->declarator && it->declarator->initializer) {
FullySpecifiedType initTy = semantic()->check(it->declarator->initializer, _scope);
Q_UNUSED(initTy);
}
*decl_it = new (translationUnit()->memoryPool()) List<Declaration *>();
(*decl_it)->value = symbol;
decl_it = &(*decl_it)->next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment