So, I'm wondering is the first correct in saying that it's illegal (though the CUDA Fortran Guide seems to say it's okay), or is the second one wrong in allowing compilation to occur? I don't know which behavior to trust...if either.

FYI: I'm using PGI 12.5, but it seems to occur just the same with V 11.10.