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.
I've reproduced the bug using this very easy example: #include <string> #include <boost/shared_ptr.hpp> // This is a condition to reproduce - write // 'using' directive separately, in my case it was a header file. // The example works with a single source file too. namespace abc { using boost::shared_ptr; } // And there are code examples which make code suggestion works or not. namespace abc { void f() { shared_ptr<std::string> sptr(new string("text")); /// OK! sptr-> } namespace def { void f() { shared_ptr<std::string> sptr(new string("text")); /// FAIL! NO SUGGESTION! sptr-> } } }
More simple test case (from bug 235102). Seems the problem is the same. Maybe this bug should be marked as duplicate of 235102 (but since 235102 is quite vague, it is better to keep this bug separated from 235102). ===================================================== namespace A { struct AAA { int foo(); }; } namespace B { using namespace A; } namespace B { namespace C { AAA x; int function() { x.foo(); // foo is unresolved } } } =====================================================
It seems that it was fixed in context of bug 235102. Changesets: http://hg.netbeans.org/cnd-main/rev/114d890820e3 http://hg.netbeans.org/cnd-main/rev/98933b57abaa http://hg.netbeans.org/cnd-main/rev/00be106c83fd