https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99506
--- Comment #7 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Wed, Mar 10, 2021 at 10:22:45PM +0000, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99506 > > --- Comment #6 from anlauf at gcc dot gnu.org --- > (In reply to Richard Biener from comment #4) > > I don't know fortran enough for what 'parameter' means in this context: > > > > real(double), parameter:: latt(jmax) = [(latt100(i)/100.d0, j=1,jmax)] > > > > but the middle-end sees a readonly global (TREE_STATIC) variable. > > There is a possibly related issue in pr91960. > Yes, same problem. An uninitialized *variable* is used in an implied-do loop, which is an ac-value expression. Perhaps, resolve.c(resolve_fl_parameter) needs to do some deeper checking.