]> git.ipfire.org Git - thirdparty/gcc.git/commit
gfortran.h (array_type): New type `AS_IMPLIED_SHAPE'.
authorDaniel Kraft <d@domob.eu>
Fri, 13 Aug 2010 07:26:05 +0000 (09:26 +0200)
committerDaniel Kraft <domob@gcc.gnu.org>
Fri, 13 Aug 2010 07:26:05 +0000 (09:26 +0200)
commitf5ca06e67847e071c6df8ca316afc042af8cb07d
treecfb530d8bd21c019453cd0cba78bea87e46daea2
parentcf677bb86756a4ab60f1db9592261cfa90265b17
gfortran.h (array_type): New type `AS_IMPLIED_SHAPE'.

2010-08-13  Daniel Kraft  <d@domob.eu>

* gfortran.h (array_type): New type `AS_IMPLIED_SHAPE'.
* array.c (gfc_match_array_spec): Match implied-shape specification and
handle AS_IMPLIED_SHAPE correctly otherwise.
* decl.c (add_init_expr_to_sym): Set upper bounds for implied-shape.
(variable_decl): Some checks for implied-shape declaration.
* resolve.c (resolve_symbol): Assert that array-spec is no longer
AS_IMPLIED_SHAPE in any case.

2010-08-13  Daniel Kraft  <d@domob.eu>

* gfortran.dg/implied_shape_1.f08: New test.
* gfortran.dg/implied_shape_2.f90: New test.
* gfortran.dg/implied_shape_3.f08: New test.

From-SVN: r163221
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/implied_shape_1.f08 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/implied_shape_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/implied_shape_3.f08 [new file with mode: 0644]