When attempting to compile the following minimal test case:
The nvcc compiler segfaults with the following message:
This is with the most recent version of the CUDA toolkit:
I suspect that this is not actually allowed anyway, and automatic arrays must have bounds that are constant at compile time. Is this correct?