When executing a goto
statement in C++, are the two arrays in the code fragment below removed from the stack? Or will they be removed from the stack when the method returns?
retrySplit:
...
uint32_t primsAbove[primitives.size()];
uint32_t primsBelow[primitives.size()];
...
goto retrySplit;
This question is not related to leaks resulting from using a goto statement, but concerned with the possibility of whether you can blow up your stack.
}
...) – Dressmakerprimitives.size()
is a constant expression, this code is not standard, because it's using VLAs. – Comportment