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

Summary: Generic template is renamed w/o its specializations
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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