Nvcc error : 'cicc' died with status 0xC0000005 - Only in DEBUG mode

Similar problem with totally different code reported recently in Cicc crash when compiling pytorch