| Summary: | Template function resolution problem with index | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Sergey Prigogin <eclipse.sprigogin> | ||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Mike Kucera <mikekucera> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | yevshif | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 7.0.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
CDT HEAD: test.h ------ template <class U> void f(const U& u, const typename U::t& v) { } template <class U> void f(U& u, const typename U::t& v) { } test.cc ------- #include "test.h" template <typename T> class A { typedef T t; }; void test() { const A<int>& a; int b; f(a, b); // problem on f } The problem goes away when the contents of test.h are copied to test.cc.