https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61615

--- Comment #7 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Dominique d'Humieres from comment #6)

Well, the problem is in the resolution of the generic,
not in the invocation in the main.

If you comment out

!   MODULE PROCEDURE bar_a1d

you get the result desired by the author:

 in bar_s

Now if you comment out the module procedure bar_s,
gfortran does *not* complain, but resolve to the *wrong* procedure.
So for some strange reason, gfortran fails to recognise the proper rank.

OTOH, NAG complains:

Error: pr61615.f90, line 28: No specific match for reference to generic BAR

I get corresponding errors from PGI or Intel.

IMO a bug in gfortran.

Reply via email to