https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96320
--- Comment #17 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Tue, Jul 28, 2020 at 10:32:50AM +0000, dominiq at lps dot ens.fr wrote: > > What I guessed, but I still see (not new) > > /opt/gcc/work/gcc/testsuite/gfortran.dg/whole_file_23.f90:18:32: > > 18 | pure integer function lensum (words, sep) > | 1 > Warning: Interface mismatch in global procedure 'lensum' at (1): Shape > mismatch > in argument 'words' > So, change the dg-error to "Interface mismatch in" from "Shape mismatch in". Clearly, Paul's patch detects an error earlier in the parsing than previously detected.