Cpp2 TERMINATED by signal 11

Correct that I don’t believe we’ve added support for random number generation in device code, however the compiler shouldn’t segv. Hence I added a problem report, TPR #30999, and sent it to engineering for further investigation.

Note that the segv only occurs at -O2 and above. At -O1, the compiler gives an error:

% nvc++ test.cpp -stdpar -V21.9 -O0 --c++17
NVC+±F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Unsupported statement operator (test.cpp: 1)
NVC++/x86-64 Linux 21.9-0: compilation aborted

-Mat