diff options
author | Daniel Kraft <d@domob.eu> | 2010-08-15 17:28:10 +0200 |
---|---|---|
committer | Daniel Kraft <domob@gcc.gnu.org> | 2010-08-15 17:28:10 +0200 |
commit | e6c148988cfe585abf4eb2d3f1839f97a83cc1a9 (patch) | |
tree | e3e1c7f09d4ce2dcff79e7b4801680172b017c43 /gcc/fortran/interface.c | |
parent | 69f11a1360a23fd4aa0567ab1c4b62dcc5be8127 (diff) | |
download | gcc-e6c148988cfe585abf4eb2d3f1839f97a83cc1a9.zip gcc-e6c148988cfe585abf4eb2d3f1839f97a83cc1a9.tar.gz gcc-e6c148988cfe585abf4eb2d3f1839f97a83cc1a9.tar.bz2 |
re PR fortran/45197 ([F2008] Allow IMPURE elemental procedures)
2010-08-15 Daniel Kraft <d@domob.eu>
PR fortran/45197
* decl.c (gfc_match_prefix): Match IMPURE prefix and mark ELEMENTAL
routines not IMPURE also as PURE.
* intrinsic.c (enum klass): New class `CLASS_PURE' and renamed
`NO_CLASS' in `CLASS_IMPURE'.
(add_sym): Set symbol-attributes `pure' and `elemental' correctly.
(add_sym_0s): Renamed `NO_CLASS' in `CLASS_IMPURE'.
(add_functions): Ditto.
(add_subroutines): Ditto and mark `MOVE_ALLOC' as CLASS_PURE.
* resolve.c (gfc_pure): Do not treat ELEMENTAL as automatically PURE.
(resolve_formal_arglist): Check that arguments to ELEMENTAL procedures
are not ALLOCATABLE and have their INTENT specified.
2010-08-15 Daniel Kraft <d@domob.eu>
PR fortran/45197
* gfortran.dg/elemental_args_check_3.f90: New test.
* gfortran.dg/impure_1.f08: New test.
* gfortran.dg/impure_2.f08: New test.
* gfortran.dg/impure_3.f90: New test.
* gfortran.dg/typebound_proc_6.f03: Changed expected error message.
From-SVN: r163261
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions