Compiler Error C2453

array bound expression uses function name

An array was declared with a bound expression that was a function name.

An array bound must be a type that has a conversion to type int.

The following is an example of this error:

int func();

void bunc()
{
    char *buf;

    buf = new char[10];     // OK
    buf = new char[func];   // error, array bound is function name
    buf = new char[bunc];   // error
}