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:
parent
19b964b6f1
commit
28b56b0e88
1 changed files with 3 additions and 0 deletions
|
@ -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() );
|
||||
|
|
Loading…
Add table
Reference in a new issue