Using directive decls must not be added in the scope chains. Fixes second part

of savannah #99294


git-svn-id: http://root.cern.ch/svn/root/trunk@47947 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
Vassil Vassilev 2012-12-10 13:07:18 +00:00
parent b117bb49de
commit 242e1feb89

View File

@ -470,6 +470,10 @@ namespace cling {
// Template instantiations should also not be pushed into scope.
if (isa<FunctionDecl>(ND) &&
cast<FunctionDecl>(ND)->isFunctionTemplateSpecialization())
return false;
// Using directives are not registered onto the scope chain
if (isa<UsingDirectiveDecl>(ND))
return false;
IdentifierResolver::iterator