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 252700

Summary: C++11 function auto return type does not find types in immediate namespace
Product: cnd Reporter: ivan_p
Component: Code ModelAssignee: 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

Description ivan_p 2015-05-30 14:59:45 UTC
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.
Comment 1 ivan_p 2015-09-28 17:14:56 UTC
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
Comment 2 ivan_p 2015-09-28 17:26:23 UTC
(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...