mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Modified patch from Devin Steffler for bug 102731
This commit is contained in:
parent
be44a4b99a
commit
765f125622
1 changed files with 5 additions and 2 deletions
|
@ -323,8 +323,11 @@ public class CPPClassScope extends CPPScope implements ICPPClassScope {
|
|||
*/
|
||||
public ICPPClassType getClassType() {
|
||||
ICPPASTCompositeTypeSpecifier compSpec = (ICPPASTCompositeTypeSpecifier) getPhysicalNode();
|
||||
return (ICPPClassType) compSpec.getName().resolveBinding();
|
||||
IBinding binding = compSpec.getName().resolveBinding();
|
||||
if (binding instanceof ICPPClassType)
|
||||
return (ICPPClassType) binding;
|
||||
|
||||
return new CPPClassType.CPPClassTypeProblem( compSpec.getName(), IProblemBinding.SEMANTIC_BAD_SCOPE, compSpec.getName().toCharArray() );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue