diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/ClassTypeHelper.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/ClassTypeHelper.java index 2d7f054aa5a..e62bdc67091 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/ClassTypeHelper.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/ClassTypeHelper.java @@ -314,11 +314,10 @@ public class ClassTypeHelper { private static ObjectSet getOwnMethods(ICPPClassType classType) { ObjectSet set= new ObjectSet(4); set.addAll(classType.getDeclaredMethods()); - if (classType instanceof IProblemBinding) { - return set; + IScope scope = classType.getCompositeScope(); + if (scope instanceof ICPPClassScope) { + set.addAll(((ICPPClassScope) scope).getImplicitMethods()); } - ICPPClassScope scope= (ICPPClassScope) classType.getCompositeScope(); - set.addAll(scope.getImplicitMethods()); return set; }