:REVIEWMAIL: Paul Thomas wrote: > Regtested on amd64/Cygwin_NT - OK for trunk? OK (with the correct testcase you posted later). I think the algorithm is cleaner with this patch than the current "sym->ns = gfc_current_ns;" - besides the fact that it fixes this PR. Thanks, Tobias