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

Process the enumerator initializers.

parent ceb488c8
No related branches found
No related tags found
No related merge requests found
......@@ -400,7 +400,9 @@ bool CheckSpecifier::visit(EnumSpecifierAST *ast)
continue;
const NameId *enumeratorName = control()->nameId(id);
Declaration *decl = control()->newDeclaration(enumerator->firstToken(),
enumeratorName);
enumeratorName);
FullySpecifiedType initTy = semantic()->check(enumerator->expression, _scope);
e->addMember(decl);
}
return false;
......
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