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 206225 - Refactor: rename template function which has full specializations
Summary: Refactor: rename template function which has full specializations
Status: RESOLVED DUPLICATE of bug 191928
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-10 21:31 UTC by igagis
Modified: 2014-11-20 10:58 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 igagis 2011-12-10 21:31:05 UTC
1. Prepare the following example:

=================================================
template <int param> int func(){
	return param;
}

template <> int func<10>(){
	return 30;
}

int main(int argc, char** argv){	
	func<40>();
	return 0;
}
=================================================

2. Right-click on the 'func' name in the first template declaration
3. Select Refactor -> Rename
4. Enter any new name for the function and press Refactor button.

Expected result: all 3 occurrences of the 'func' name should be replaced with the new name.

Actual result: only general template declaration name is changed. Full specialization of 'func' is not renamed, call of the 'func' from main() is not renamed.
Comment 1 igagis 2011-12-10 21:36:10 UTC
Forgot to mention that if I remove the Full specialization and do the renaming, it replaces the function call from main() with the new name correctly.
So, looks like the presence of this Full specialization causes the problem to arise.
Comment 2 Vladimir Voskresensky 2014-11-20 10:58:57 UTC
It should be implemented as part of issue #191928

*** This bug has been marked as a duplicate of bug 191928 ***