Community
Participate
Working Groups
In the following program... ========== int main(){ char c='A'; switch( c ) { case 'A': // extract 'A' break; } return 0; } ========== ...if you select the label 'A' on line 5 and invoke the Extract Function refactoring, CDT produces the following code: ========== char extracted_function() { return 'A'; } int main() { char c='A'; switch( c ) { case extracted_function(): // extract 'A' break; } return 0; } ========== This breaks the program and I would expect it not to be allowed.