aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2006-03-19 10:36:09 +0000
committerPaul Thomas <pault@gcc.gnu.org>2006-03-19 10:36:09 +0000
commit98cb5a5439fa61ed6d27630f617514d209c7a36a (patch)
treeb16dca5ec532707c455566c5c970430026e1f61d /gcc/fortran/expr.c
parent4d58f908f91b068c2a7fe2b0c6e84eed2990c2e0 (diff)
downloadgcc-98cb5a5439fa61ed6d27630f617514d209c7a36a.zip
gcc-98cb5a5439fa61ed6d27630f617514d209c7a36a.tar.gz
gcc-98cb5a5439fa61ed6d27630f617514d209c7a36a.tar.bz2
re PR fortran/26716 (gfortran: incorrect choice of overloaded function)
2006-03-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/26716 *expr.c (external_spec_function): Permit elemental functions. PR fortran/26716 *interface.c (compare_actual_formal): Detect call for procedure usage and require rank checking, in this case, for assumed shape and deferred shape arrays. (gfc_procedure_use): Revert to pre-PR25070 call to compare_actual_formal that does not require rank checking.. 2006-03-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/26716 * gfortran.dg/elemental_initializer_1.f90: New test. PR fortran/26716 * gfortran.dg/assumed_shape_ranks_2: New test. From-SVN: r112210
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r--gcc/fortran/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 6db1c6b..8362f53 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -1636,7 +1636,7 @@ external_spec_function (gfc_expr * e)
return FAILURE;
}
- if (!f->attr.pure)
+ if (!f->attr.pure && !f->attr.elemental)
{
gfc_error ("Specification function '%s' at %L must be PURE", f->name,
&e->where);