Syntax errors with array new
Prior to z/OS® V1R2, C/C++ compilers treated the following two
statements as semantically equivalent:
new (int *) [1]; //*Syntactially incorrect statement
new int* [1];
The first statement is syntactically incorrect even in older versions of the C++ Standard. However, previous versions of C++ accepted it.
As of z/OS V1R2, the C/C++ compiler will produce a compilation error message that specifies the syntactically incorrect statement.