InstantiationDependent is dependent, too; fix logic. (ROOT-6650)

This commit is contained in:
Axel Naumann 2014-12-16 10:26:54 +01:00 committed by sftnight
parent 3d4398f54a
commit 46aca4b23e

View File

@ -879,7 +879,8 @@ namespace cling {
}
bool EvaluateTSynthesizer::IsArtificiallyDependent(Expr* Node) {
if (!Node->isValueDependent() || !Node->isTypeDependent())
if (!Node->isValueDependent() && !Node->isTypeDependent()
&& !Node->isInstantiationDependent())
return false;
DeclContext* DC = m_CurDeclContext;
while (DC) {