This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20851] dummy argument may not appear in specification expression in elemental procedure
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2007 11:45:27 -0000
- Subject: [Bug fortran/20851] dummy argument may not appear in specification expression in elemental procedure
- References: <bug-20851-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from tobi at gcc dot gnu dot org 2007-10-07 11:45 -------
Subject: Bug 20851
Author: tobi
Date: Sun Oct 7 11:45:15 2007
New Revision: 129069
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129069
Log:
PR fortran/20851
fortran/
* expr.c (check_inquiry): Typo fix in error message.
(check_init_expr): Same * 3.
(check_restricted): Verify that no dummy arguments appear in
restricted expressions in ELEMENTAL procedures.
* resolve.c (resolve_fl_variable): Exchange order of checks to
avoid side-effect.
testsuite/
* initialization_1.f90: Fix dg-error annotations.
* initialization_14.f90: New.
* initialization_7.f90: Fix dg-error annotations.
* initialization_9.f90: Likewise.
Added:
trunk/gcc/testsuite/gfortran.dg/initialization_14.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/initialization_1.f90
trunk/gcc/testsuite/gfortran.dg/initialization_7.f90
trunk/gcc/testsuite/gfortran.dg/initialization_9.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20851