diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java index 5512b48841a..415a5be4aa2 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java @@ -1569,7 +1569,7 @@ public class CPPTemplates { if (tmplArgs == null || fnArgs == null) { tmplArgs = ICPPTemplateArgument.EMPTY_ARGUMENTS; try { - if (containsDependentType(fnArgs)) { + if (fnArgs == null || containsDependentType(fnArgs)) { functions[i]= CPPUnknownFunction.createForSample(template); return; }