Internal compiler error. BAD sptr in var_refsym

Ok, but now another problem,

the code:

#include <stdio.h>

int main(void) {

int i = 1024; 
	#pragma omp target teams loop firstprivate(i)
	for (int x = 0; x < i; x++) {
		printf("var value = %d\n", x);
	}

return 0;

}

and I get:

$ nvc++ main.cpp -mp=gpu -o main
nvc+±Warning-CUDA_HOME has been deprecated. Please, use NVHPC_CUDA_HOME instead.
/apps/NVIDIA-HPC-SDK/22.9/Linux_ppc64le/22.9/compilers/share/llvm/bin/llc: error: /apps/NVIDIA-HPC-SDK/22.9/Linux_ppc64le/22.9/compilers/share/llvm/bin/llc: /tmp/nvc++Ue_dkXu4X-pk.ll:104:22: error: use of undefined value ‘%i’
store i32 %6, i32* %i, align 4, !dbg !40
^

This is only an example, the real code is more complex, so I need firstprivate, private, and so on.

I can’t stop crying.

Thank you!