This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36935] unneeded temporary
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2008 14:26:22 -0000
- Subject: [Bug fortran/36935] unneeded temporary
- References: <bug-36935-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jv244 at cam dot ac dot uk 2008-07-25 14:26 -------
(In reply to comment #1)
> Reads similar to http://gcc.gnu.org/ml/fortran/2008-07/msg00163.html
>
> PaulT wrote:
> > pt = point((/ x, y, z /))
> > 1
> > Warning: Creating array temporary at (1)
>
> This will always occur where an array actual argument is not a
> contiguous section of a variable.
>
It is similar, but I believe Paul might have misread your example. His comment
would but right if point were a function call, but it is not. I believe a temp
shouldn't be created in your example.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36935