1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Fixes a CCE in CPPSpecialization, bug 253050.

This commit is contained in:
Markus Schorn 2008-11-03 10:20:19 +00:00
parent 099c3c1f96
commit 9626614618

View file

@ -18,6 +18,7 @@ import org.eclipse.cdt.core.dom.ast.IBinding;
import org.eclipse.cdt.core.dom.ast.IScope;
import org.eclipse.cdt.core.dom.ast.IType;
import org.eclipse.cdt.core.dom.ast.IValue;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassSpecialization;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction;
@ -137,7 +138,9 @@ public abstract class CPPSpecialization extends PlatformObject implements ICPPSp
}
public boolean isGloballyQualified() throws DOMException {
return ((ICPPInternalBinding) specialized).isGloballyQualified();
if (specialized instanceof ICPPBinding)
return ((ICPPBinding) specialized).isGloballyQualified();
return false;
}
public ILinkage getLinkage() {