Hello. I’ve had a problem with the NVFORTRAN compiler. When compiling an “end subroutine” statement, the compiler gave the error:
NVFORTRAN-F-0000-Internal compiler error. gen_llvm_expr(): no incoming ili 0 (../../../source/Fortran/nseq.F90: 2175)
Should I send the file that resulted in this error? How can I work around this?
Ok, I fixed it. I had some “integer, constant” variables. I changed them to “integer, parameter”, and then the error disappeared.
Hi vinicius16,
Although you found a work around, are you still able to provide a minimal reproducing example?
If not, can you describe how you were using the CUDA Fortran “constant” attribute so I can see about creating one? i.e. we’re you trying to use this variable in host code?
Even if you might have been using the attribute incorrectly, the compiler shouldn’t ICE, but rather catch the error.
-Mat
I was using the “constant” attribute in a module that was accessed by the main function. Also, I’m not knowledgeable enough to be able to make a minimal reproducing example. My full code is on Github, but I don’t have the version that had that issue anymore.