| Summary: | ADL doesn't work for template class. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vasiliy Dybala <dibalavs> | ||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Mike Kucera <mikekucera> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 8.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 180404 [details]
testcase + fix
Fixed in 8.0 > 20101007. *** cdt cvs genie on behalf of mschorn *** Bug 327069: ADL for class specializations. [*] CPPSemantics.java 1.188 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java?root=Tools_Project&r1=1.187&r2=1.188 [*] AST2TemplateTests.java 1.197 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java?root=Tools_Project&r1=1.196&r2=1.197 |
Build Identifier: 201009242334 1. Enter code: template <class T> class Ptr{}; namespace NS { class T {}; void f(Ptr<T>); } void test() { Ptr<NS::T> parm; f(parm); } 2. parses says that f(param) could not be found. But this compile successfully. Reproducible: Always Steps to Reproduce: 1. Launch eclipse 2. write code 3. see error.