re PR fortran/54556 (Marking implicitly pure variables as DECL_PURE_P leads to wrong...
authorTobias Burnus <burnus@net-b.de>
Thu, 13 Sep 2012 14:57:38 +0000 (16:57 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 13 Sep 2012 14:57:38 +0000 (16:57 +0200)
commitc915f8bca422b3e7f76c9e2e87667c516627c728
tree456522c8d5e110e07f9646aef6c70490f0d67b68
parentb5c350d82e02bcc202d4c33a8a43cdf65c7d5d2e
re PR fortran/54556 (Marking implicitly pure variables as DECL_PURE_P leads to wrong code)

2012-09-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54556
        * resolve.c (resolve_formal_arglist): Allow VALUE arguments
        with implicit_pure.
        (gfc_impure_variable): Don't check gfc_pure such that the
        function also works for gfc_implicit_pure procedures.

2012-09-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54556
        * gfortran.dg/implicit_pure_3.f90: New.

From-SVN: r191259
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/implicit_pure_3.f90 [new file with mode: 0644]