1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Bug 322268 CPPSemantics should check null for op2 in function findOverloadedOperator

This commit is contained in:
Vivian Kong 2010-08-10 19:41:26 +00:00
parent cea5f68197
commit 130420ce3c

View file

@ -2997,6 +2997,9 @@ public class CPPSemantics {
final IASTExpression op1 = exp.getOperand1();
final IASTExpression op2 = exp.getOperand2();
if(op2==null){
return null;
}
IType op1type = getNestedType(op1.getExpressionType(), TDEF | REF | CVTYPE);
IType op2type = getNestedType(op2.getExpressionType(), TDEF | REF | CVTYPE);
if (!isUserDefined(op1type) && !isUserDefined(op2type))