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.
Summary: | Code assistance fails for some inline namespaces | ||
---|---|---|---|
Product: | cnd | Reporter: | sperber |
Component: | Code Completion | Assignee: | petrk |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Assistance trouble
Test project screenshot Netbeans include screenshot chrono header |
Description
sperber
2015-01-03 21:05:54 UTC
I can't reproduce your problem. In issue 229641 user had not problem with std::chrono too (see https://bugzilla-attachments-229641.netbeans.org/bugzilla/attachment.cgi?id=134349). Do you use c++11 flag in order to setup project? Created attachment 151351 [details]
Test project
Yes the project is set to C++11 (see attachment) Sorry - I pasted the wrong bug number - i meant 236290 which is marked as duplicate of 230760 which is marked as fixed. I've attached my test project - maybe that helps. Created attachment 151354 [details]
screenshot
I see you use CLang 3.4 and unknown (for NetBeans) platform. Which OS you use? Can you press Ctrl+Alt and move mouse on "#include <chrono>" (see screenshot)? On Windows or Linux a CLang++ compiler use GCC header files, but it is not a universal rule.
I use FreeBSD 10.1 which uses llvm headers. I'll attach the chrono header and a screenshot for the chrono-include. Created attachment 151355 [details]
Netbeans include screenshot
Created attachment 151356 [details]
chrono header
confirmed. Default FreeBSD has problem with std::chrono Such code confuses parser: namespace A { inline namespace __1 { namespace B { void foo() { } } } } int main() { A::B::foo(); return 0; } Though, I must say that the bug is partly fixed - IDE will recognize namespaces inside inlined namespaces but they will not be listed in code completion list (i.e. navigation to symbols will work but autocompletion won't). Integrated into 'main-silver', will be available in build *201501220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9cfc72b96460 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #249613 - Code assistance fails for some inline namespaces verified in trunk
>System Info:
Product Version = NetBeans IDE Dev (Build 201502240532) (#d6aa48dbbbfb)
verified in NetBeans IDE 8.0.2 (Build 201502242207) |