https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96073
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Thomas Kथà¤nig <tkoe...@gcc.gnu.org>: https://gcc.gnu.org/g:90efb2512d40f0a59b063aa0416a6d28849ee424 commit r11-2036-g90efb2512d40f0a59b063aa0416a6d28849ee424 Author: Thomas Koenig <tkoe...@gcc.gnu.org> Date: Sat Jul 11 19:16:16 2020 +0200 Fix ICE on warning with new interface check. In the test case, there was a warning about INTENT where an EXTERNAL masked an interface in an outer scope, when the location of the symbol was not set, leading to an ICE. Two problems, two-part solution: It makes no sense to warn about INTENT for artificially generated formal argument lists, and the location should be set. gcc/fortran/ChangeLog: PR fortran/96073 * frontend-passes.c (check_externals_procedure): Add locus information for new_sym. * interface.c (gfc_check_dummy_characteristics): Do not warn about INTENT for artificially generated variables. gcc/testsuite/ChangeLog: PR fortran/96073 * gfortran.dg/interface_48.f90: New test.