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 269761

Summary: "Find usages" working incorrectly with an overloaded operator (C++)
Product: cnd Reporter: thermostat
Component: NavigationAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Complete code

Description thermostat 2017-02-06 17:29:10 UTC
Created attachment 163581 [details]
Complete code

In the attached C++ example code, the expected result of "find usages of X" in main would be the three assignment occurences and the print method (as in the code snippet below).

MyVector X(3);
X(0) = 2.3;
X(1) = 5.7;
X(2) = 10.9;
X.print();

However, find usages only identifies X.print().
Navigate -> Go to declaration/definition in the three assignment lines goes to the () operator definition, not to the declaration of X.