This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33341] array temporaries for "all intrinsic" (unnecessary stores for array constructor)
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2008 19:28:52 -0000
- Subject: [Bug fortran/33341] array temporaries for "all intrinsic" (unnecessary stores for array constructor)
- References: <bug-33341-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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