https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78226
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Here's the commit, the PR number was incorrect. Author: tkoenig Date: Mon Nov 7 15:25:21 2016 New Revision: 241909 URL: https://gcc.gnu.org/viewcvs?rev=241909&root=gcc&view=rev Log: 2016-11-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/78226 * match.c (gfc_match_select_type): Add where for expr1. * resolve.c (resolev_select_type): Add where for expr1 of new statement. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c trunk/gcc/fortran/resolve.c