This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40605] -fcheck=pointer: Problems with OPTIONAL
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2009 16:09:37 -0000
- Subject: [Bug fortran/40605] -fcheck=pointer: Problems with OPTIONAL
- References: <bug-40605-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from burnus at gcc dot gnu dot org 2009-07-01 16:09 -------
Another failure - this time for __convert_i4_r4 (a EXPR_FUNCTION) as actual
argument, which does not set sym->result ...
Test case:
SUBROUTINE plotdop(amat)
IMPLICIT NONE
REAL, INTENT (IN) :: amat(3,3)
integer :: i1
real :: pt(3)
i1 = 1
pt = MATMUL(amat,(/i1,i1,i1/))
END SUBROUTINE plotdop
Patch:
--- intrinsic.c (revision 149129)
+++ intrinsic.c (working copy)
@@ -3996,0 +3997 @@ gfc_convert_type_warn (gfc_expr *expr, g
+ new_expr->symtree->n.sym->result = new_expr->symtree->n.sym;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40605