https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108546
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|fortran |middle-end Priority|P3 |P2 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- (gdb) p exp $1 = <parm_decl 0x7ffff7ff3280 x> (gdb) p context $2 = <function_decl 0x7ffff6460f00 s> (gdb) p current_function_decl $3 = <function_decl 0x7ffff6065200 __m_MOD_s._omp_fn.0> so we somehow forgot to remap 's'? Looks like a middle-end issue to me.