re PR fortran/66113 (Variable n cannot appear in the expression with nested blocks)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 16 May 2015 12:33:01 +0000 (12:33 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 16 May 2015 12:33:01 +0000 (12:33 +0000)
commit1aae3f05473e1e6bbfb80a9adfbc8cff4a61e310
tree03c12b7dcd2d7bed40f9e13094e8f4ed26459a10
parent2a2703a2bd0046ed60a2054df1f4f3ba5c793062
re PR fortran/66113 (Variable n cannot appear in the expression with nested blocks)

2015-05-16  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66113
* expr.c (is_parent_of_current_ns):  New function.
(check_restricted):  Use it.

2015-05-16  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66113
* gfortran.dg/block_14.f90:  New test.

From-SVN: r223238
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/block_14.f90 [new file with mode: 0644]