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 100325 - Template partial specializations aren't processed correctly
Summary: Template partial specializations aren't processed correctly
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-09 09:03 UTC by Vladimir Kvashin
Modified: 2007-12-05 17: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 Vladimir Kvashin 2007-04-09 09:03:42 UTC
Code model doesn't distingwish template partial specializations from primary 
template declarations.

The code example:

template<typename T> struct Pair {
    // ...
};
template<typename T> struct Pair<T*> {
    // ...
};

The end-user effect is as follows: class view shows only one Pair template; when
navigating it goes to partial specialization.

This is similar to defects described in #92138 and #98188, but is different from
both language and implementation point of view. 

Parser creates CSM_TEMPLATE_CLASS_DECLARATION node in the case of template
partial specilaization.
Comment 1 Vladimir Kvashin 2007-04-13 15:12:00 UTC
Fixed.

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/AstRenderer.java,v
 <--  AstRenderer.java
new revision: 1.2.2.18.4.20; previous revision: 1.2.2.18.4.19

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/Attic/TemplateUtils.java,v
 <--  TemplateUtils.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
Comment 2 Alexander Ioffe 2007-12-05 17:21:52 UTC
Verified in build 20071205