[Bug fortran/16136] Conflicting attributes ALLOCATABLE, DUMMY (F2003)
eedelman at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Mar 5 19:24:00 GMT 2006
------- Comment #4 from eedelman at gcc dot gnu dot org 2006-03-05 19:24 -------
Subject: Bug 16136
Author: eedelman
Date: Sun Mar 5 19:24:48 2006
New Revision: 111741
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111741
Log:
fortran/
2005-03-05 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/16136
* symbol.c (conf_std): New macro.
(check_conflict): Use it to allow ALLOCATABLE dummy
arguments for F2003.
* trans-expr.c (gfc_conv_function_call): Pass the
address of the array descriptor when dummy argument is
ALLOCATABLE.
* interface.c (compare_allocatable): New function.
(compare_actual_formal): Use it.
resolve.c (resolve_deallocate_expr,
resolve_allocate_expr): Check that INTENT(IN) variables
aren't (de)allocated.
* gfortran.texi (Fortran 2003 status): List ALLOCATABLE
dummy arguments as supported.
testsuite/
2005-03-05 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/16136
* allocatable_dummy_1.f90: New.
* allocatable_dummy_2.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/allocatable_dummy_1.f90
trunk/gcc/testsuite/gfortran.dg/allocatable_dummy_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.texi
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/symbol.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16136
More information about the Gcc-bugs
mailing list