diff options
author | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-19 10:36:09 +0000 |
---|---|---|
committer | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-19 10:36:09 +0000 |
commit | 6658f183664062db4c06ddb0b6c393f7b2d0fe7e (patch) | |
tree | b16dca5ec532707c455566c5c970430026e1f61d /gcc/fortran/expr.c | |
parent | c770a6d823dd5df2dd99ea9c1fd1a41855ffefb1 (diff) | |
download | ppe42-gcc-6658f183664062db4c06ddb0b6c393f7b2d0fe7e.tar.gz ppe42-gcc-6658f183664062db4c06ddb0b6c393f7b2d0fe7e.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 6db1c6bad7c..8362f5336fc 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); |