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 138965 - Parser fails on nested template method of template definition
Summary: Parser fails on nested template method of template definition
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 17:37 UTC by nnnnnk
Modified: 2013-05-07 11:21 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 nnnnnk 2008-07-03 17:37:57 UTC
Parser fails on nested template method of template definition

class Z {
public:
    template <class P> class T {
    public:
        template <int i> int foo();
    };

    template <class P>
    template <int i> // error
    int
    T<P>::foo() {
        return i;
    }

    T<int> t;
};

int main() {
    Z z;
    z.t.foo < 5 > ();
    return 0;
}