Process the enumerator initializers.

This commit is contained in:
Roberto Raggi
2010-03-03 17:36:00 +01:00
parent ceb488c865
commit 768d6031a6

View File

@@ -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;