https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114141
--- Comment #11 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Thu, Feb 29, 2024 at 06:33:51PM +0000, pault at gcc dot gnu.org wrote: > --- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> --- > (In reply to Jerry DeLisle from comment #9) > > --- snip --- > > > % gfcx -o z a.f90 > > > a.f90:5:6: > > > > > > 5 | x%im = 42 > > > | 1 > > > Error: 'x' at (1) associated to expression cannot be used in > > > a variable definition context (assignment) > > > > > > Mikael, thanks for the feedback. I'll see if I can fix > > > the parentheses case this weekend. > > > > This is definitely a 42 case, which is why I had three '?' in my reply. > > > > And if you understand this, you are OK in my book. :) > > BTW Both nagfor and ifort compile the testcase without complaint. > > Your fix is closely related to my patch for not-yet-parsed function selectors. > I know you had some ASSOCIATE patches in the works, and certainly do not want to interfere. Do you want to incorporate my patch or some variation into your work? I'm hoping to take a stab at the issue Jerry raised with parentheses this weekend.