On 22.09.21 16:58, Sandra Loosemore wrote:

This patch is adds the missing diagnostic noted in PR fortran/101319.
OK to commit?

LGTM. Thanks!

For reference, the F2018 wording is: "If the actual argument is of a
derived type that has type parameters, type-bound procedures, or final
subroutines, the dummy argument shall not be assumed-type."

Tobias

commit 9d5b9062d728d1b1bf5acfb914e06d776bdcdb60
Author: Sandra Loosemore<san...@codesourcery.com>
Date:   Wed Sep 22 07:49:17 2021 -0700

     Fortran: diagnostic for argument w/type parameters for assumed-type dummy

     2021-09-22  Sandra Loosemore<san...@codesourcery.com>

      PR fortran/101319

     gcc/fortran/
      * interface.c (gfc_compare_actual_formal): Extend existing
      assumed-type diagnostic to also check for argument with type
      parameters.
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 
München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas 
Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht 
München, HRB 106955

Reply via email to