diff --git a/core/clingutils/src/TClingUtils.cxx b/core/clingutils/src/TClingUtils.cxx index 2373f0cd429df6..f574adc2e9c03e 100644 --- a/core/clingutils/src/TClingUtils.cxx +++ b/core/clingutils/src/TClingUtils.cxx @@ -4765,6 +4765,7 @@ clang::QualType ROOT::TMetaUtils::ReSubstTemplateArg(clang::QualType input, cons // (See AddDefaultParameters). return input; } else { + if (TST->getArg(index).getKind() == clang::TemplateArgument::Type) return TST->getArg(index).getAsType(); } }