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.
Created attachment 146578 [details] Screenshot. See screenshot and attached test project... If X::Y namespace, A and B classes are in the main.cpp file completion of _a->foo() works fine, but if i split declarations as in project, NB cannot resolve any members of _a... Project compiles successfully (need c++11 support for using types alias)...
Created attachment 146579 [details] Test project.
Actually this is a regression in nightly build, in nb8.0rc1 works perfect. Test case for regression: ===================================================== #include <memory> struct AAA { int foo() {return 0;}; }; int main() { std::unique_ptr<AAA> a; a->foo(); // foo is unresolved return 0; } =====================================================
Fixed in http://hg.netbeans.org/cnd-main/rev/754843d18418 and http://hg.netbeans.org/cnd-main/rev/c899b29dcf85
Integrated into 'main-silver', will be available in build *201404080419* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/754843d18418 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #243594 - Unable to resolve identifiers with unique_ptr alias
Not fixed yet... See new screenshot (made with test project in attachments).
Created attachment 146631 [details] Screenshot 2.
Product Version: NetBeans IDE Dev (Build 201404080419)
Hmm, for me it works. I'm pretty sure that you've deleted cachedir before testing, so it only could be difference in header files. I'm using g++ 4.8.1 and what is your compiler?
Another interesting thing - I downloaded test project again and foo was unresolved in it until the project was reparsed (However, it could be because of an error about mismatched platforms which I have to resolve when I'm opening project from your machine). Cache dir was empty at that moment, so it is worth to reparse the whole project.
Thanks, there was actually a problem with reading type aliases from cache. I didn't notice it because all clients in my IDE are turned off in order to make debugging more simple and there were no requests to cache. Hope, now it will work. Fixed in http://hg.netbeans.org/cnd-main/rev/2cb710e5c605
Integrated into 'main-silver', will be available in build *201404100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2cb710e5c605 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Additional fix for #243594 - Unable to resolve identifiers with unique_ptr alias -- fixed repository handler for type aliases
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/fcd891bf5f01 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #243594 - Unable to resolve identifiers with unique_ptr alias (transplanted from 754843d1841888269ff0642e33727d1b1451d971)
This test project is still broken in build 201411181905.
Please, check again in current development version. If it doesn't not work for you, we will elaborate on the bug. The issue may be related to the version of compiler or to OS for instance.