nvcc bug

I faced a bug in nvcc compiler, it is described here:

http://stackoverflow.com/questions/16101537/cuda-bug-with-threadidx

Can someone have a look, please-please?

Alexander