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 247682 - Generic template is renamed w/o its specializations
Summary: Generic template is renamed w/o its specializations
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 21:49 UTC by Vladimir Kvashin
Modified: 2014-11-19 13:01 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 2014-10-03 21:49:50 UTC
Generic template is renamed w/o its specializations

When renaming a generic template, its specializations are not renamed.
This leads to incompilable code

template <int> class spec_templ {};

template <> class spec_templ<1> {
    public:
    spec_templ<1>() {
    }
    spec_templ(int) {
        
    }
    int foo() {
        return 1;
    }
};

template <> class spec_templ<2> {
    public:
    spec_templ(int) {
        
    }
    spec_templ<2>() {
    }
    int foo() {
        return 2;
    }
};
Comment 1 Vladimir Kvashin 2014-10-03 21:50:24 UTC
It's provavky a dupolicate of isse 206225,
but I'm not sure