This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31293] New: Implicit character and array returning functions
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2007 10:46:37 -0000
- Subject: [Bug fortran/31293] New: Implicit character and array returning functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program compiles with NAG f95, g95 and ifort, but gfortran
writes:
interface1.f90:8.12:
test2(i:i) = achar(mod(i,32)+iachar('@'))
1
Error: Unclassifiable statement at (1)
This is possibly related to PR 31222. (If you mark it as duplicate, please
ensure that the full example is tested after that PR is fixed.)
Please also check the full program after you fixed it:
http://home.comcast.net/%7Ekmbtib/Fortran_stuff/interface1.f90
module test1
implicit none
contains
function test2()
implicit character (t)
integer i
do i = 1, len(test2)
test2(i:i) = achar(mod(i,32)+iachar('@'))
end do
end function test2
end module test1
--
Summary: Implicit character and array returning functions
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31293