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 241157 - Unresolved identifier in template
Summary: Unresolved identifier in template
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 10:56 UTC by petrk
Modified: 2014-11-21 13:16 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 petrk 2014-01-30 10:56:17 UTC
template <typename T>
struct AAA {
    template <typename T1, typename T2 = T>
    struct BBB {
        typedef T1 type1;
        typedef T2 type2;
    };
};

struct Param1 {
    int foo();
};

struct Param2 {
    int boo();
};

typedef typename AAA<Param1>::BBB<Param2>::type2 type;

int main() {
    type var;
    var.foo(); // foo is unresolved
    return 0;
}