| Summary: | Name resolution problem using typedef to cv-qualified class as class-name | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Jens Elmenthaler <jens.elmenthaler> | ||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Markus Schorn <mschorn.eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 181294 [details]
testcase + fix
Fixed in 8.0 > 20101020. *** cdt cvs genie on behalf of mschorn *** Bug 328063: Typedef to cv-qualified class as class-name. [*] AST2CPPTests.java 1.371 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java?root=Tools_Project&r1=1.370&r2=1.371 [*] CPPVisitor.java 1.141 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/CPPVisitor.java?root=Tools_Project&r1=1.140&r2=1.141 |
Build Identifier: HEAD Create a source file with the following content: class Type { public: class const_iterator { }; }; typedef const Type ConstType; ConstType::const_iterator cit; In this example, const_iterator in the last line cannot be resolved. Removing the const from the typedef, however, it can. Reproducible: Always