[Bug fortran/41370] New: Function return-type declaration with specification expression rejected
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 16 07:38:00 GMT 2009
In the same c.l.f thread as PR 41369: The following program, based on a post by
Jim Xia does not compile with gfortran (nor with NAG f95, ifort, openf95); I
think it is standard conform (CHECK before fixing!) - and it works with g95.
character(len=mt%i) function foo(mt)
1
Error: Syntax error in CHARACTER declaration at (1)
module m
type t
integer,pointer :: i
end type t
end module
character(len=mt%i) function foo(mt)
use m
type(t), intent(in) :: mt
end function foo
See:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/817234ccd2b3ae1b
--
Summary: Function return-type declaration with specification
expression rejected
Product: gcc
Version: 4.5.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=41370
More information about the Gcc-bugs
mailing list