This never worked in the current version of C ++, you could only initialize (or not initialize) dynamically allocated arrays.
What always worked is initialization without a dynamically allocated array:
int myarray[] = {1, 2, 3, 4, 5};
Perhaps you are confusing this?
Even in C ++ 0x, this is not legal syntax to omit an explicit array size specifier in a new expression.
Charles Bailey
source share