From 16adcf3114f6a4b8956b8a31fb5dad7c8f0edd77 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 13 Aug 2010 11:59:51 +0200 Subject: Added the newly created Enum symbol to its enclosing class or namespace scope. --- src/shared/cplusplus/Bind.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/cplusplus') diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index bca93e3dc0..4062c266cb 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -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) { -- cgit v1.2.1