This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40551] Wrong code due to missing copy-in/copy-out stried array to assumed-size dummy
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2009 09:20:53 -0000
- Subject: [Bug fortran/40551] Wrong code due to missing copy-in/copy-out stried array to assumed-size dummy
- References: <bug-40551-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pault at gcc dot gnu dot org 2009-06-29 09:20 -------
(In reply to comment #6)
> (In reply to comment #5)
> The following fixes the problem. It needs to be checked to see if it is
> over-restrictive.
Yes it is - there is no need for this when the lhs section is contiguous.
I have modified gfc_full_array_ref_p to return a pointer to a boolean, which
indicates if the reference is contiguous or not. This works correctly with the
testcase and variants.
I will regtest and post to the list tonight.
Cheers
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40551