Community
Participate
Working Groups
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
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