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

Summary: Parser fails on nested template method of template definition
Product: cnd Reporter: nnnnnk <nnnnnk>
Component: Code ModelAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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;
}