--- Comment #7 from pault at gcc dot gnu dot org 2006-11-25 14:39 ---
Fixed on trunk and 4.2.
Will backport to 4.1 in coming week.
Paul
PS please not error in ChangeLog for trunk - will fix Monday.
--
pault at gcc dot gnu dot org changed:
What|Removed
--- Comment #6 from pault at gcc dot gnu dot org 2006-11-25 14:38 ---
Subject: Bug 29837
Author: pault
Date: Sat Nov 25 14:37:56 2006
New Revision: 119198
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119198
Log:
2006-11-25 Paul Thomas <[EMAIL PROTECTED]>
PR fortran/
--- Comment #5 from patchapp at dberlin dot org 2006-11-16 17:10 ---
Subject: Bug number PR29837
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-11/msg01186.html
--
http://gcc.gnu.org/bugzilla/sh
--- Comment #4 from pault at gcc dot gnu dot org 2006-11-16 08:01 ---
This is due to a trivial error in:
Index: /svn/trunk/gcc/fortran/interface.c
===
*** /svn/trunk/gcc/fortran/interface.c (revision 118704)
--- /svn/trunk
--- Comment #3 from enok at lysator dot liu dot se 2006-11-15 08:06 ---
(In reply to comment #2)
> The trivial workaround is to assign MAXVAL(X) to an integer.
Ok, but my real code is more complex. And I think there must be something
wrong. If I put an "INTENT(IN)" variable as X it work
--- Comment #2 from kargl at gcc dot gnu dot org 2006-11-15 00:18 ---
The trivial workaround is to assign MAXVAL(X) to an integer.
SUBROUTINE T(X)
INTEGER, INTENT(IN) :: X(:)
INTEGER Y, Z
z = maxval(x)
CALL A(z,Y)
END SUBROUTINE T
I need to look at the standard with
--- Comment #1 from enok at lysator dot liu dot se 2006-11-14 23:14 ---
Created an attachment (id=12621)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12621&action=view)
Small testcase that triggers the compiler bug
gfortran4 -c tst.f90
In file tst.f90:22
CALL A(MAXVAL(X),Y)