| Summary: | Name resolution gets thrown off by a namespace in an unrelated file | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Sergey Prigogin <eclipse.sprigogin> | ||||||
| Component: | cdt-parser | Assignee: | Sergey Prigogin <eclipse.sprigogin> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Mike Kucera <mikekucera> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | yevshif | ||||||
| Version: | 7.0 | Flags: | eclipse.sprigogin:
iplog-
|
||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 196382 [details]
Implementation of indexing on open
Comment on attachment 196382 [details]
Implementation of indexing on open
Attached to a wrong bug.
Created attachment 196393 [details]
Fix and test case
Fixed in HEAD > 20110523. *** cdt cvs genie on behalf of sprigogin *** Bug 319632 - Name resolution gets thrown off by a namespace in an unrelated file. [*] IndexBugsTests.java 1.105 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexBugsTests.java?root=Tools_Project&r1=1.104&r2=1.105 [*] CPPSemantics.java 1.203 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java?root=Tools_Project&r1=1.202&r2=1.203 |
unrelated.cc ------------ namespace ns1 { namespace ns2 {} } test.cc ------- namespace ns2 { class A {}; } namespace ns1 { class B : public ns2::A { // problem on ns2::A }; } It looks like we need namespace disambiguation based on reachability similar to how it is done for other bindings.