1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

methods' implicit object parameter needs to handle templates in the same way as the type of "this"

This commit is contained in:
Andrew Niefer 2005-05-11 17:43:17 +00:00
parent 19b964b6f1
commit 28b56b0e88

View file

@ -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() );