https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114141
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |pault at gcc dot gnu.org Last reconfirmed| |2024-02-29 --- 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. Cheers Paul