This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24520] Temporary constant array descriptors being declared at wrong binding level.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 15:38:10 -0000
- Subject: [Bug fortran/24520] Temporary constant array descriptors being declared at wrong binding level.
- References: <bug-24520-9236@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-15 15:38 -------
You can expose the bug now with:
real, dimension(12) :: x, y
real :: z
do i = 1, 10000000
z = g(x,y)
end do
print *, x
contains
function g(x, y)
real, dimension(:) :: x, y
real g
x = x + y
end function
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24520