This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207841 - double "using namespace" breaks code model
Summary: double "using namespace" breaks code model
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 15:14 UTC by Egor Ushakov
Modified: 2012-01-29 19:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2012-01-27 15:14:39 UTC
test case:
namespace ns1 {
    namespace ns2 {
        struct SS {
            void foo();
        };
    } 
}

using namespace ns1;
using namespace ns2;

int main() {
    SS a;
    a.foo();
}

foo is not found in main
Comment 1 Vladimir Voskresensky 2012-01-29 19:37:24 UTC
http://hg.netbeans.org/cnd-main/rev/d4a6cdd36047
Comment 2 Vladimir Voskresensky 2012-01-29 19:52:58 UTC
test
http://hg.netbeans.org/cnd-main/rev/a35619a31a84