[Bug fortran/30400] [4.2 and 4.1 only] ANY not accepted as mask in FORALL

2007-02-25 Thread sayle at gcc dot gnu dot org


--- Comment #5 from sayle at gcc dot gnu dot org  2007-02-25 21:15 ---
Subject: Bug 30400

Author: sayle
Date: Sun Feb 25 21:14:49 2007
New Revision: 122322

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122322
Log:
2007-02-25  Roger Sayle  [EMAIL PROTECTED]
Paul Thomas [EMAIL PROTECTED]

PR fortran/30400
* match.c (match_forall_iterator): Use gfc_match_expr instead
of gfc_match_variable to match the iterator variable.  Return
MATCH_NO if not a variable.  Remove the reset of the symbol's
flavor in cleanup.

* gfortran.dg/forall_10.f90: New test case.


Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/forall_10.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30400



[Bug fortran/30400] [4.2 and 4.1 only] ANY not accepted as mask in FORALL

2007-02-24 Thread sayle at gcc dot gnu dot org


--- Comment #4 from sayle at gcc dot gnu dot org  2007-02-24 15:10 ---
Subject: Bug 30400

Author: sayle
Date: Sat Feb 24 15:09:50 2007
New Revision: 122289

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122289
Log:
2007-02-24  Roger Sayle  [EMAIL PROTECTED]
Paul Thomas [EMAIL PROTECTED]

PR fortran/30400
* match.c (match_forall_iterator): Use gfc_match_expr instead
of gfc_match_variable to match the iterator variable.  Return
MATCH_NO if not a variable.  Remove the reset of the symbol's
flavor in cleanup.

* gfortran.dg/forall_10.f90: New test case.


Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/forall_10.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/match.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30400