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 main(int a, char** argv) { int b = 0; // Variable to be renamed return b; } ================================== The refactoring tool is allowing to rename the variable "b" to an invalid identifier (in the following case, a pointer): ========== Refactored =========== int main(int a, char** argv) { int *b = 0; // Invalid rename! return *b; } ================================= Notice that when compiling the resulting program (Refactored), the compiler issues a warning (since I'm returning a pointer instead of an integer). When attempting to execute the refactored version, a Segmentation Fault is thrown. Maybe it would be better to check the rules of a well-formed identifier before applying the transformation to avoid this kind of problem. Thanks in advance.