From: Axel Naumann Date: Wed, 24 Sep 2014 09:22:45 +0000 (+0200) Subject: Use the canonical decl as keep-n-args key; we might have had a previous decl. X-Git-Tag: v6-02-00-rc1~14 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=b75acec5a42dfc1ec48b533fe0c89535f7570b22 Use the canonical decl as keep-n-args key; we might have had a previous decl. --- diff --git a/core/meta/src/TCling.cxx b/core/meta/src/TCling.cxx index b70726a..307ae02 100644 --- a/core/meta/src/TCling.cxx +++ b/core/meta/src/TCling.cxx @@ -1407,7 +1407,7 @@ void TCling::RegisterModule(const char* modulename, // Drill through namespaces recursively until the template is found if(ClassTemplateDecl* TD = FindTemplateInNamespace(T->getFirstDecl().getSingleDecl())){ - fNormalizedCtxt->AddTemplAndNargsToKeep(TD, nArgsToSkip); + fNormalizedCtxt->AddTemplAndNargsToKeep(TD->getCanonicalDecl(), nArgsToSkip); } }