Community
Participate
Working Groups
Build Identifier: A bug found during the investigation for bug 321736 The function of findOverloadedOperator in class CPPSemantics should check if the op2 is null since CPPASTBinaryExpression could return null by its getOperand2 function. Reproducible: Always
Created attachment 176263 [details] a patch applied to org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPSemantics I have discussed the fix patch with Markus in the bug 321376, https://bugs.eclipse.org/bugs/show_bug.cgi?id=321376 The patch targets CDT 701 and I will also create a junit test case for this patch.
Applied to cdt_7_0 and HEAD. Thanks John
*** cdt cvs genie on behalf of vkong *** Bug 322268 CPPSemantics should check null for op2 in function findOverloadedOperator [*] CPPSemantics.java 1.164.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java?root=Tools_Project&r1=1.164.2.1&r2=1.164.2.2 [*] CPPSemantics.java 1.170 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java?root=Tools_Project&r1=1.169&r2=1.170