This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34556] Rejects valid with bogus error message: parameter initalization
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2007 21:25:55 -0000
- Subject: [Bug fortran/34556] Rejects valid with bogus error message: parameter initalization
- References: <bug-34556-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dfranke at gcc dot gnu dot org 2007-12-22 21:25 -------
Confirmed.
Simplified testcase:
integer :: a(2,2) = reshape( (/ max((/ 1,2 /), (/ 3,4 /)), (/4,5/) /),
(/2,2/))
end
It seems that the array-valued MAX is crucial here. If removed or replaced by a
scalar-valued MAX, it works as expected. OTOH, removing RESHAPE works as well.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-22 21:25:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34556