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 230101 - Dot is not replaced with arrow in case of instantiation of template function with template argument
Summary: Dot is not replaced with arrow in case of instantiation of template function ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.3
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-22 10:47 UTC by petrk
Modified: 2013-05-29 02:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2013-05-22 10:47:52 UTC
struct MyClass {
    void Test() {}
};

template <class T> 
struct my_vector {
    typedef T* iterator;
};

template <class T>
struct my_foreach_iterator {
    typedef typename T::iterator type;
};

template <class Iterator>
struct my_iterator_reference
{
    typedef Iterator type;
};

template<typename T>
struct my_foreach_reference : my_iterator_reference<typename my_foreach_iterator<T>::type>
{
};

template <class T>
typename my_foreach_reference<T>::type myDeref() {
    
}

int main()
{
    // here dot before Test() should be replaced with arrow
    (*myDeref<my_vector<MyClass*> >()).Test(); 

    return 0;
}
Comment 1 petrk 2013-05-22 11:52:20 UTC

*** This bug has been marked as a duplicate of bug 97120 ***
Comment 3 Quality Engineering 2013-05-29 02:04:53 UTC
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3cb33bb3067f
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #230101 - Dot is not replaced with arrow in case of instantiation of template function with template argument