re PR fortran/50564 (Front-end optimization - ICE with FORALL)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 10 Oct 2011 19:07:35 +0000 (19:07 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 10 Oct 2011 19:07:35 +0000 (19:07 +0000)
commit2855325f50569ed1a0c06b1cd8d86fe580472924
treea8e423b877426619210fa4f103847793aae46c08
parent50da34bb1b301f869253ca55bdb4833baa24ab4e
re PR fortran/50564 (Front-end optimization - ICE with FORALL)

2011-10-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/50564
* frontend-passes (forall_level):  New variable.
(cfe_register_funcs):  Don't register functions if we
are within a forall loop.
(optimize_namespace):  Set forall_level to 0 before entry.
(gfc_code_walker):  Increase/decrease forall_level.

2011-10-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/50564
* gfortran.dg/forall_15.f90:  New test case.

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