]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/30146 (Redefining do-variable in excecution cycle)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 25 Nov 2012 17:24:09 +0000 (17:24 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 25 Nov 2012 17:24:09 +0000 (17:24 +0000)
commit305a35dafbd7b88c152022a91e25f0e0e2bc79fe
treec87a484350b9810e9356b4733345da9931d42614
parent99303b325ea337b9947bd3470f81c7467fa7d989
re PR fortran/30146 (Redefining do-variable in excecution cycle)

2012-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30146
* frontend-passes.c (doloop_warn):  New function.
(doloop_list):  New static variable.
(doloop_size):  New static variable.
(doloop_level):  New static variable.
(gfc_run_passes): Call doloop_warn.
(doloop_code):  New function.
(doloop_function):  New function.
(gfc_code_walker):  Keep track of DO level.

2012-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30146
* gfortran.dg/do_check_6.f90:  New test.

From-SVN: r193793
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/do_check_7.f90 [new file with mode: 0644]