This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51250] [4.7 Regression] Bug with SUM(,dim,mask)
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Nov 2011 07:46:46 +0000
- Subject: [Bug fortran/51250] [4.7 Regression] Bug with SUM(,dim,mask)
- Auto-submitted: auto-generated
- References: <bug-51250-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51250
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |burnus at gcc dot gnu.org
Target Milestone|--- |4.7.0
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-21 07:46:46 UTC ---
Workaround: -Os (optimize for code size)
I would assume that it is due to Mikael's scalarizer patch set (Rev. 180842 to
Rev. 180922), cf. http://gcc.gnu.org/ml/fortran/2011-11/msg00046.html
Similar issue exists for PRODUCT, which is not surprising as they mostly share
the same code path.
(The expr->shape is correctly set in iresolve.c - but only if the shape and dim
is known at compile time, thus not in this case.)
(I couldn't quickly find the right spot in trans*.c)