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; // constant to be extracted to a variable return 0; } =============================================== After applying the refactoring, we have the resulting code: ============= Refactored Version ============== int main(int a, char** argv) { int int = 0; // invalid token name int b = int; return 0; } =============================================== The refactoring tool allows to extract variables with invalid names, like the keyword "int", leading to a compiling error. Thanks in advance.
* by constant, I was actually saying "literal value" Sorry about that.