You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Flang][OpenMP] verification of lowering to FIR failed with "the type of the operand must be a pointer type whose element type is the same as that of the region argument" #83722
$ cat omp_atomic4_reduced.f90 real :: c double precision :: c2!$omp atomic capture c2 = c c = 2.0 * c!$omp end atomicend
$ flang-new -fopenmp omp_atomic4_reduced.f90error: loc("/tmp/omp_atomic4_reduced.f90":1:5): the type of the operand must be a pointer type whose element type is the same as that of the region argumenterror: verification of lowering to FIR failed
If I change c = 2.0 * c in the program into c = 2.0, the following is obtained. So I think this is related to (or essentially identical to) #83144.
error: address must dereference to value typeerror: verification of lowering to FIR failed