https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85895
--- Comment #2 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Wed, May 23, 2018 at 07:46:17PM +0000, kargl at gcc dot gnu.org wrote: > > This patch causes an error message to be generated. Need to > go find standard language to determine if the reference of > an array element counts as a scalar-default-char-variable. > IOW, is the following valid Fortran > > program p > character(80) :: c(2) > sync memory (errmsg=c(2)) > end > I suspect that the above is valid. F2008, page 122 states "An array element is a scalar." So, c(2) is a scalar with default character type. One also has R601 designator is object-name or array-element R602 variable is designator Yep. Valid.