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 141842 - If template parameter declared as a template class, its usage is unresolved
Summary: If template parameter declared as a template class, its usage is unresolved
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 08:58 UTC by Vladimir Kvashin
Modified: 2008-07-28 15:50 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 Vladimir Kvashin 2008-07-28 08:58:09 UTC
In the example below (taken from boost), all usages of F are unresolved

namespace aux {

    template<
          typename IsLE, typename Tag
        , template< typename P1 > class F // F unresolved
        , typename L1
        >
    struct le_result1
    {
        typedef F< // F unresolved
              typename L1::type
            > result_;

        typedef result_ type;
    };
    F method(); // F unresolved
    F field; // F unresolved
}
Comment 1 Vladimir Kvashin 2008-07-28 12:36:09 UTC
Sorry, the example is incorrect. Here is a correct one

namespace aux {

    template<
          typename IsLE, typename Tag
        , template< typename P1 > class F // F unresolved
        , typename L1
        >
    struct le_result1
    {
        typedef F< // F unresolved
              typename L1::type
            > result_;

        typedef result_ type;
        F method(); // F unresolved
        F field; // F unresolved
    };
}
Comment 2 Vladimir Kvashin 2008-07-28 12:38:52 UTC
I see this rather frequently in test examples