Community
Participate
Working Groups
In the following program... ========== int main(){ char c; switch( c ) { case 'A': //select 'A' break; } return 0; } ========== If you select 'A' (on line 5), and invoke the Extract Constant refactoring, CDT produces the following incorrect code: ========== static const char extracted_constant = 'A'; int main() { char c; switch( c ) { case extracted_constant: //select 'A' break; } return 0; } ========== The case label changed to integer constant.