Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363731 - [Call Hierarchy] Missing call to overriden method using address of function
Summary: [Call Hierarchy] Missing call to overriden method using address of function
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 13:13 EST by Marc-André Laperle CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2011-11-14 13:13:12 EST
Using CDT 8.1.0.201111131105

Sample code:

class A {
    virtual void foo(){} // on foo, InitCallback is in the call hierarchy

    template<typename C>
    void SetCallback(C callback){}
    void InitCallback() {
        SetCallback(&A::foo);
    }
};

class B: public A {
    virtual void foo(){} // on foo, InitCallback is NOT in the call hierarchy
};
Comment 1 Markus Schorn CLA 2011-11-28 03:35:43 EST
Added testcase and fix.
Comment 2 CDT Genie CLA 2011-11-28 04:23:01 EST
*** cdt git genie on behalf of Markus Schorn ***

    Bug 363731: Call Hierarchy for address of overridden method.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c83768bd6f1b5629264a817b75e6f0eab15857ad
Comment 3 Marc-André Laperle CLA 2011-11-28 10:44:37 EST
Thank you, that fixes the problem in my environment too.