Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361999

Summary: [Call Hierarchy] Empty call hierarchy on templated method in templated class
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-source-navAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2011-10-25 16:07:45 EDT
Using CDT 8.1.0.201110241007

template<typename T>
class Array
{
public:
    template<class TIterator>
    void erase(TIterator it) // Open call hierarchy on erase, it's empty
    {

    }
};

int main() {
    Array<int> test;
    int it;
    test.erase(it); // Open call hierarchy on erase, it's empty
}
Comment 1 Markus Schorn CLA 2011-11-02 10:05:09 EDT
Thanks for the example, added testcase and fix.
Comment 2 CDT Genie CLA 2011-11-02 10:23:02 EDT
*** cdt git genie on behalf of Markus Schorn ***

    Bug 361999: Call Hierarchy for instance of template-specialization.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ecfdcab4abb0a82f2a30e697b3823f0b3219cab6
Comment 3 Marc-André Laperle CLA 2011-11-03 12:10:34 EDT
Thank you, I can confirm that it fixed the issue in my environment.