[Bug fortran/33888] New: ICE - CHARACTER expression using an ELEMENTAL FUNCTION as actual arg
w6ws at earthlink dot net
gcc-bugzilla@gcc.gnu.org
Thu Oct 25 01:34:00 GMT 2007
The following causes an ICE:
$ cat ftn95bug.f90
program ftn95bug
implicit none
character(8) :: indata(4) = (/ &
'12344321', '98766789', 'abcdefgh', 'ABCDEFGH' &
/)
call process (myfunc (indata)) ! <- This causes a gfortran ICE !
contains
elemental function myfunc (s)
character(*), intent(in) :: s
character(len (s)) :: myfunc
myfunc = s
end function
subroutine process (strings)
character(*), intent(in) :: strings(:)
print *, strings
end subroutine
end program
wws@gallifrey /cygdrive/d/usr/wws/fortran/utils
$ gfortran --version
GNU Fortran (GCC) 4.3.0 20071005 (experimental) [trunk revision 127783]
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
wws@gallifrey /cygdrive/d/usr/wws/fortran/utils
$ gfortran ftn95bug.f90
ftn95bug.f90:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
wws@gallifrey /cygdrive/d/usr/wws/fortran/utils
$
--
Summary: ICE - CHARACTER expression using an ELEMENTAL FUNCTION
as actual arg
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: w6ws at earthlink dot net
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33888
More information about the Gcc-bugs
mailing list