re PR fortran/13010 (seg fault on valid code)
authorPaul Brook <paul@codesourcery.com>
Tue, 16 Nov 2004 02:02:37 +0000 (02:02 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Tue, 16 Nov 2004 02:02:37 +0000 (02:02 +0000)
commit40b026d890b797f058047aeba398e22b0e8d7db6
tree0b302faf5d83b8618c58bea7ea7eb3ca99221e10
parente61ec2dd124a3ef737fabc2686a862c76bdb91db
re PR fortran/13010 (seg fault on valid code)

PR fortran/13010
* trans-array.c (gfc_trans_allocate_temp_array): Use gfc_get_dtype.
(gfc_array_init_size, gfc_conv_expr_descriptor): Ditto.
* trans-types.c (gfc_get_dtype): Accept array type rather than element
type.
(gfc_get_nodesc_array_type): Don't set GFC_TYPE_ARRAY_DTYPE.
(gfc_get_array_type_bounds): Ditto.
(gfc_get_derived_type): Recurse into derived type pointers.
* trans-types.h (gfc_get_dtype): Add prototype.
* trans.h (GFC_TYPE_ARRAY_DTYPE): Add comment.
testsuite/
* gfortran.dg/der_pointer_1.f90: New test.

From-SVN: r90714
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-types.c
gcc/fortran/trans-types.h
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/der_pointer_1.f90 [new file with mode: 0644]