https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84922
--- Comment #9 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Wed, Mar 21, 2018 at 08:15:57PM +0000, dominiq at lps dot ens.fr wrote: > > subroutine copy_byte_data(data, copy) > > 1 > > Error: Shape mismatch in argument 'data' at (1) > > It would be nice to skip this error. -fmax-errors=1 will do the trick. > > Not sure if this is correct, though. > > Note that I have spent some time this afternoon marking any PR with > "interface" > in the summary as blocking the meta-bug pr29670. Some of those errors can't be fixed without a major rewrite of the gfortran frontend. The problem comes down to parsing into red-black trees is done almost exclusively without resolution. Attributes for symbols get coelesced into a single gfc_symbol. module dimension k(4) contains function k real k k = 1 end function end module These are 2 different 'k' entities. gfortran thinks it is a function return an array of 4 elements.