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/33341] array temporaries for "all intrinsic" (unnecessary stores for array constructor)



------- Comment #2 from tkoenig at gcc dot gnu dot org  2008-07-27 19:28 -------
The test case now correctly complains about
an unneeded temporary:

$ gfortran -Warray-temporaries foo.f90
foo.f90:5.8:

  foo = all((/ a, b, c /) /= d)
       1
Warning: Creating array temporary at (1)


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|unnecessary stores for array|array temporaries for "all
                   |constructor                 |intrinsic" (unnecessary
                   |                            |stores for array
                   |                            |constructor)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33341


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