This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/36935] unneeded temporary



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]