mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Allow friend declarations to resolve to templates.
This commit is contained in:
parent
d5b8322626
commit
e4fc78c9e5
1 changed files with 11 additions and 0 deletions
|
@ -296,6 +296,17 @@ public class CPPSemantics {
|
|||
node instanceof ICPPASTTemplatedTypeTemplateParameter) {
|
||||
ok= true; // can be argument or default-value for template template parameter
|
||||
break;
|
||||
} else if (node instanceof IASTElaboratedTypeSpecifier) {
|
||||
IASTNode parent= node.getParent();
|
||||
if (parent instanceof IASTSimpleDeclaration) {
|
||||
IASTDeclSpecifier declspec = ((IASTSimpleDeclaration) parent).getDeclSpecifier();
|
||||
if (declspec instanceof ICPPASTDeclSpecifier) {
|
||||
if (((ICPPASTDeclSpecifier) declspec).isFriend()) {
|
||||
ok= true; // a friend class template declarations uses resolution.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
node= node.getParent();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue