Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319632

Summary: Name resolution gets thrown off by a namespace in an unrelated file
Product: [Tools] CDT Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: cdt-parserAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact: Mike Kucera <mikekucera>
Severity: normal    
Priority: P3 CC: yevshif
Version: 7.0Flags: eclipse.sprigogin: iplog-
Target Milestone: 8.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Implementation of indexing on open
eclipse.sprigogin: iplog-
Fix and test case eclipse.sprigogin: iplog-

Description Sergey Prigogin CLA 2010-07-12 16:34:09 EDT
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.
Comment 1 Sergey Prigogin CLA 2011-05-23 18:26:58 EDT
Created attachment 196382 [details]
Implementation of indexing on open
Comment 2 Sergey Prigogin CLA 2011-05-23 18:28:06 EDT
Comment on attachment 196382 [details]
Implementation of indexing on open

Attached to a wrong bug.
Comment 3 Sergey Prigogin CLA 2011-05-23 22:28:18 EDT
Created attachment 196393 [details]
Fix and test case
Comment 4 Sergey Prigogin CLA 2011-05-23 22:29:25 EDT
Fixed in HEAD > 20110523.