http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57966

--- Comment #5 from janus at gcc dot gnu.org ---
(In reply to janus from comment #3)
> (In reply to janus from comment #2)
> > Draft patch (not regtested yet):
> 
> Seems to survive the regtest without any failures

However, it ICEs on the following variant (which involves a GENERIC TBP):


MODULE my_mod
  IMPLICIT NONE

  TYPE config_cls
  CONTAINS
    PROCEDURE, NOPASS :: my_size
    GENERIC :: sz => my_size
  END TYPE

  TYPE(config_cls) :: config

CONTAINS

  PURE INTEGER FUNCTION my_size()
    my_size = 10
  END FUNCTION

  SUBROUTINE my_sub( field )
    REAL :: field( config%sz() )
  END SUBROUTINE

END MODULE


With an unpatched gfortran, this yields the same (bogus) error as comment 0.
Unfortunately ifort 12.1.2 ICEs on this variant (and I don't have access to a
newer version), but after all I assume it is valid.

Reply via email to