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 228290

Summary: 'find usage' cannot find most ctor/dtor
Product: cnd Reporter: tbrunhoff <tbrunhoff>
Component: NavigationAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description tbrunhoff 2013-04-05 15:26:27 UTC
For the following code:
-------------------------
class Foo {
public:
    Foo() { printf("ctor\n"); }
    ~Foo() { printf("dtor\n"); }
};

/*
 * 
 */
int main(int argc, char** argv)
{
    Foo foo1();
    Foo* foo2 = new Foo();
    foo2->~Foo();
    delete foo2;
    return 0;
}
-------------------------
if you ask it to 'find usages" for the constructor, it cannot find 'Foo foo1();' although it can find the constructor in 'Foo* foo2 = new Foo();'

if you ask it to 'find usages" for the destructor, it cannot find either instance.
Comment 1 tbrunhoff 2013-04-05 17:37:04 UTC
Product Version: NetBeans IDE Dev (Build 201303192300)
Updates: Updates available
Java: 1.6.0_43; Java HotSpot(TM) Client VM 20.14-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_43-b01
System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 2 Egor Ushakov 2013-08-02 15:09:18 UTC

*** This bug has been marked as a duplicate of bug 223032 ***