Community
Participate
Working Groups
In the following program... ========== typedef struct {}a; typedef a b[1]; int main() { b *f; f = (b *) malloc(sizeof(*f)); //select *f return 0; } ========== If you select '*f' (on line 7), and invoke the Extract Local Variable refactoring, CDT produces the following incorrect code: ========== typedef struct {}a; typedef a b[1]; int main() { b *f; b extracted_variable = *f; f = (b *) malloc(sizeof(extracted_variable)); //extract *f return 0; } ========== The array is initialized from non-constant array expression.