------- Comment #2 from dfranke at gcc dot gnu dot org  2007-07-17 10:38 -------
Please note that the problem is not limited to character functions:

$> cat pr31529.f90
print *, bar((/2, 3/))
contains
  elemental function bar(i)
    integer, intent(in) :: i
    integer :: a(i:i)
    a = i
    bar = a(i)
  end function bar
end

Here, dummy I is used as specification expression in array bounds and accepted
by gfortran (20070716). Although there is no ICE and the result is as one would
expect, the code is still invalid.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


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

Reply via email to