Community
Participate
Working Groups
Eclipse IDE for C/C++ Developers Version: Kepler Service Release 1 Build id: 20130919-0819 Reproducing the bug: Consider the following code: ======== Original Version ======== int x(int a) { // Parameter to be renamed return a; } int main(int a, char** argv) { return x(a); } ================================== The refactoring tool is allowing to rename the parameter "a" (first function) to a pointer, changing the code behavior: ========== Refactored =========== int x(int *a) { // Now, parameter "a" is a pointer return *a; } int main(int a, char** argv) { return x(a); } ================================= Notice that when compiling the resulting program (Refactored), the compiler issues a warning (since I'm passing an integer instead a pointer now). When attempting to execute the refactored version, a Segmentation Fault is thrown. Thanks in advance.