Fixed as 'obvious' on 7-branch and trunk in r258213 and 258195 respectively.
Paul 2018-03-03 Paul Thomas <pa...@gcc.gnu.org> PR fortran/80965 * resolve.c (build_loc_call): Change symtree name from 'loc' to '_loc'. 2018-03-03 Paul Thomas <pa...@gcc.gnu.org> PR fortran/80965 * gfortran.dg/select_type_41.f90: New test.