Community
Participate
Working Groups
In the following program... ========== int main(){ char c='A'; switch( c ) { case 'A': // extract break; } return 0; } ========== ...if you select "case 'A':" on line 5 and invoke the Extract Function refactoring, CDT produces the following code: ========== void extracted_function() { case 'A': // extract } int main() { char c='A'; switch( c ) { extracted_function(); break; } return 0; } ========== This breaks the program and I would expect it to be disallowed.
New Gerrit change created: https://git.eclipse.org/r/119785