Commit 16adcf31 authored by Roberto Raggi's avatar Roberto Raggi

Added the newly created Enum symbol to its enclosing class or namespace scope.

parent a592df02
......@@ -2407,6 +2407,7 @@ bool Bind::visit(EnumSpecifierAST *ast)
const Name *enumName = this->name(ast->name);
Enum *e = control()->newEnum(sourceLocation, enumName);
ast->symbol = e;
_scope->addMember(e);
Scope *previousScope = switchScope(e);
for (EnumeratorListAST *it = ast->enumerator_list; it; it = it->next) {
......
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