This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242719

Summary: Wrong resolving of member operator plus
Product: cnd Reporter: petrk
Component: Code ModelAssignee: petrk
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description petrk 2014-03-09 17:30:17 UTC
struct AAA {
    int foo();    
};

struct BBB {
    int boo();
    
    AAA operator + (const AAA &other) {
        return AAA();
    }    
};

int main(int argc, char** argv) {
    AAA a;
    BBB b;
    (b + a).foo(); // foo is unresolved, it suggests boo here
    return 0;
}
Comment 2 Quality Engineering 2016-07-20 01:50:58 UTC
Integrated into 'main-silver', will be available in build *201607200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f7e33a61d3b9
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #242719 - Wrong resolving of member operator plus