[Bug fortran/38669] [4.3, 4.4 Regression] Array bounds violation for arguments of elemental subroutine
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 31 10:48:00 GMT 2008
------- Comment #5 from pault at gcc dot gnu dot org 2008-12-31 10:47 -------
(In reply to comment #4)
> Created an attachment (id=17016)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17016&action=view) [edit]
> fix
>
> Does anyone know the use of the block variable I remove in this patch?
>
Yes indeed. When I wrote this function, this block of code needed to be merged
as the comments says:
/* Generate the temporary. Merge the block so that the
declarations are put at the right binding level. */
The second sentence needs to go in your patch:-)
What I have no recall of is why the block had to be merged. I believe that it
was conditional on the intent of the argument.
Cheers
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38669
More information about the Gcc-bugs
mailing list