Commit 768d6031 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Process the enumerator initializers.

parent ceb488c8
......@@ -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;
......
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