This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30162] I/O with named pipes does not work
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2007 21:07:56 -0000
- Subject: [Bug libfortran/30162] I/O with named pipes does not work
- References: <bug-30162-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from jvdelisle at gcc dot gnu dot org 2007-01-06 21:07 -------
A difficult case to deal with is:
program main
print *,foo(0)
contains
function foo (n) result(res)
integer, intent(in) :: n
integer, allocatable :: res(:)
logical :: init = .false.
if (.not. init) then
allocate (res(1))
init = .true.
else
allocate (res(2))
end if
res = n
end function foo
end program main
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30162