Building a struct array with size [x>65535] throws 0xC00000FD error
, even if x is declared as int64_t
, but inconsistently. Will work fine in one line, not in the next.
int64_t length;
length = (pull from other code);
Foo foo[length];
//^ this works
Foo2 foo2[length];
//^ this one doesn't
Is this a problem with array construction? C++ max? Compiler/memory limit?