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/34556] Rejects valid with bogus error message: parameter initalization



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


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