This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31259] ICE on elemental character function



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]