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

            Bug ID: 125488
           Summary: The GENERIC declaration within a type definition
                    doesn't work correctly
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: van.snyder at sbcglobal dot net
  Target Milestone: ---

Created attachment 64574
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64574&action=edit
Attachment contains declarations that illustrate the problem.

In a derived type definition that includes a KIND parameter, and two (or more)
specific type-bound procedures, say P2_d and P2_s, the GENERIC P => P2_d, P2_s
declaration does not work.

../Parms.f90:10:21:

   10 |       generic :: P => P2_s, P2_d
      |                     1
Error: âp2_sâ and âp2_dâ for GENERIC âpâ at (1) are ambiguous
../Parms.f90:21:21:

   21 |       generic :: P => P3_s, P3_d
      |                     1
Error: âp3_sâ and âp3_dâ for GENERIC âpâ at (1) are ambiguous

Reply via email to