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: | C++11 function auto return type does not find types in immediate namespace | ||
---|---|---|---|
Product: | cnd | Reporter: | ivan_p |
Component: | Code Model | Assignee: | petrk |
Status: | NEW --- | ||
Severity: | normal | CC: | ivan_p |
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Screenshot showing the bug |
Some more information about the issue: The name resolution technique that is used here is Koenig Lookup. This article have more info, and potentially another cases, that I did not have in my code: http://en.cppreference.com/w/cpp/language/adl (In reply to ivan_p from comment #1) > Some more information about the issue: > The name resolution technique that is used here is Koenig Lookup. > This article have more info, and potentially another cases, that I did not > have in my code: > http://en.cppreference.com/w/cpp/language/adl Erm... looks like I was too hasty... It's not exactly that... |
Created attachment 153969 [details] Screenshot showing the bug Defining method of class with "auto" return type shows "Unable to resolve identifier" for the type when type is defined inside namespace or class. Lines 30 and 35 in screenshot shows the bug. Expected result - Line 25: The type definition is found and no errors are shown. This bug is still present in nightly 201505290001.