Compiler Error C3188

the brace-enclosed form of new-initializer is not supported under /clr:oldSyntax

Example

C3188 is only reachable using /clr:oldSyntax.

The following sample generates C3188.

// C3188.cpp
// compile with: /clr:oldSyntax
using namespace System;
int main() {
   __gc new Object { 0, 0, 0, 0 };   // C3188
   __gc new Object*[4] { 0, 0, 0, 0 };   // OK
}