OSDN Git Service

2007-04-15 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Apr 2007 15:28:06 +0000 (15:28 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Apr 2007 15:28:06 +0000 (15:28 +0000)
commit2457a77e88cb55e551b23335d5a629300bb29ff5
tree998d5a983b982f9cb8acff35d3022b8d994d5cd2
parent35387ada2fe9cc69f20df5019722a494c8f9522a
2007-04-15  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31204
* primary.c (check_for_implicit_index): New function to check
that a host associated variable is not an undeclared implied
do loop index.
(gfc_match_rvalue, match_variable): Use it and reset the
implied_index attribute.
* gfortran.h : Add the implied_index field to symbol_attribute.
* match.c (gfc_match_iterator): Mark the iterator variable
with the new attribute.
* decl.c (build_sym): Reset the new attribute.

2007-04-15  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31204
* gfortran.dg/array_constructor_16.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123849 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/match.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_16.f90 [new file with mode: 0644]