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 268759 - Parser doesn't resolve names imported with 'using' from inline namespaces
Summary: Parser doesn't resolve names imported with 'using' from inline namespaces
Status: RESOLVED DUPLICATE of bug 268419
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 16:52 UTC by haibane_tenshi
Modified: 2016-11-01 10:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description haibane_tenshi 2016-10-31 16:52:54 UTC
Code sample:

namespace n{
	inline namespace version1{
		void f1(){}
	}
	inline namespace version2{
		void f2(){}
	}
}

using n::f1;
using n::version2::f2;

int main(int argc, char** argv) {
	f1();//Not resolved
	f2();//Resolved
	return 0;
}
Comment 1 Vladimir Kvashin 2016-11-01 10:21:57 UTC

*** This bug has been marked as a duplicate of bug 268419 ***
Comment 2 Vladimir Kvashin 2016-11-01 10:23:24 UTC
It has been recently fixed in trunk. The fix should be already in the daily build (http://bits.netbeans.org/download/trunk/nightly/latest/)