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 - C++11 function auto return type does not find types in immediate namespace
Summary: C++11 function auto return type does not find types in immediate namespace
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-30 14:59 UTC by ivan_p
Modified: 2016-10-31 11:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing the bug (31.88 KB, image/png)
2015-05-30 14:59 UTC, ivan_p
Details

Note You need to log in before you can comment on or make changes to this 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...