Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348905 - Open declaration from source navigates to header but does not return to source
Summary: Open declaration from source navigates to header but does not return to source
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-source-nav (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 7.0.2   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 10:34 EDT by Steve CLA
Modified: 2011-06-29 08:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve CLA 2011-06-09 10:34:01 EDT
Build Identifier: 20100218-1602

In source file, press F3 on a function that has a templated variable, this opens the header file and places at the function. In header file, press F3 on a function that has a templated variable, this does not open the source.

In the source the function appears to be public and yet the function in the header file is protected.

Reproducible: Always

Steps to Reproduce:
#ifndef OPENDEC_H
#define OPENDEC_H

template< size_t SIZE >
class my_string
    {

    public:

    my_string( void );


    protected:

    char data_[ SIZE + 1 ];

    };
template< size_t SIZE >
my_string< SIZE >::my_string( void )
    {
    }



class my_funcs
    {
    public:

    my_funcs(void);
    ~my_funcs(void);

    protected:

    void my_f1( my_string<10> &my_str );

    };


#endif /* OPENDEC_H_ */

C++ source
#include <opendec.h>

void
my_funcs::my_f1( my_string<10> &mystr )
    {

    }
Comment 1 Markus Schorn CLA 2011-06-29 08:28:59 EDT
The example works both with 7.0.2 and 8.0.