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 - Wrong resolving of member operator plus
Summary: Wrong resolving of member operator plus
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 17:30 UTC by petrk
Modified: 2016-07-20 01:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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