1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Bug 405168 - Make EvalID.instantiate() a bit more robust

Change-Id: I88caaefc8050d65f137109be7e4b810c6b7a32d9
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/32449
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
Nathan Ridge 2014-08-28 00:05:23 -04:00 committed by Sergey Prigogin
parent 83169e23d6
commit 9a25ff506e

View file

@ -323,10 +323,7 @@ public class EvalID extends CPPDependentEvaluation {
tpMap, packOffset, within, point);
} else if (nameOwner instanceof IType) {
IType type = CPPTemplates.instantiateType((IType) nameOwner, tpMap, packOffset, within, point);
if (type instanceof IBinding) {
type = getNestedType(type, TDEF);
}
type = getNestedType(type, TDEF | REF | CVTYPE);
if (!(type instanceof IBinding))
return EvalFixed.INCOMPLETE;
nameOwner = (IBinding) type;