[Bug fortran/25597] ICE with allocate on the return value of a function, character array with a len of an argument

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 1 06:27:00 GMT 2006



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-01-01 06:27 -------
(In reply to comment #4)
> A little further reduced:

Actually that is a different bug.

Anyways the reduced testcase looks like:
  FUNCTION reallocate_hnv(p,n,LEN)
    CHARACTER(LEN=LEN), DIMENSION(:), POINTER :: reallocate_hnv
    ALLOCATE(reallocate_hnv(n))
  END FUNCTION reallocate_hnv


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE with allocate on the    |ICE with allocate on the
                   |return value of a function, |return value of a function,
                   |character with a len of an  |character array with a len
                   |argument                    |of an argument


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




More information about the Gcc-bugs mailing list