This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31259] ICE on elemental character function
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2007 10:38:21 -0000
- Subject: [Bug fortran/31259] ICE on elemental character function
- References: <bug-31259-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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