1
0
Fork 0
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:
Andrew Niefer 2005-07-08 15:21:08 +00:00
parent be44a4b99a
commit 765f125622

View file

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