mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Bug 322268 CPPSemantics should check null for op2 in function findOverloadedOperator
This commit is contained in:
parent
cea5f68197
commit
130420ce3c
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue