From 28b56b0e882b551386e467d3c5be6a4d7bb80b40 Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Wed, 11 May 2005 17:43:17 +0000 Subject: [PATCH] methods' implicit object parameter needs to handle templates in the same way as the type of "this" --- .../eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java index 229c95aa11d..6dc84b63939 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java @@ -1887,6 +1887,9 @@ public class CPPSemantics { } else { cls = new CPPClassType.CPPClassTypeProblem( scope.getPhysicalNode(), IProblemBinding.SEMANTIC_BAD_SCOPE, fn.getNameCharArray() ); } + if( cls instanceof ICPPClassTemplate ){ + cls = (ICPPClassType) CPPTemplates.instantiateWithinClassTemplate( (ICPPClassTemplate) cls ); + } IType implicitType = cls; if( ftype.isConst() || ftype.isVolatile() ){ implicitType = new CPPQualifierType( implicitType, ftype.isConst(), ftype.isVolatile() );