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 257965 - Code parser get confused on shadowed typedef
Summary: Code parser get confused on shadowed typedef
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-12 18:20 UTC by Yankes
Modified: 2016-07-14 14:38 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 Yankes 2016-02-12 18:20:47 UTC
I have code:

-->%--->%--->%--->%--

class A
{
public:
    static void f();
};

class B
{
public:
    using X = A;
};

class C : B
{
public:
    using X = typename C::X; //if we use `B::X` its work fine
};

int main()
{
    C::X::f(); //error: Unable to resolve identifier f.
}

--%<---%<---%<---%<--

IDE think that `C::X` refer to `C::X` but in reality it refer to `B::X`.