This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19574] specification expression failure
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2005 14:49:58 -0000
- Subject: [Bug fortran/19574] specification expression failure
- References: <bug-19574-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from paul dot richard dot thomas at cea dot fr 2005-12-15 14:49 -------
(In reply to comment #5)
> the testcase in comment #1 no longer seg faults.
module funcs
implicit none
contains
function f(x)
character(*), intent(in) :: x
integer f(len(x))
integer i
do i=1,len(x)
f(i) = iachar (x(i:i))
end do
end function f
end module funcs
program spec_expr_test
use funcs
implicit none
write(*,*) f('test')
end program spec_expr_test
now compiles and runs correctly, as does my testcase.
I will close this tonight
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19574