expr.c (gfc_check_assign_symbol): Handle pointer assignments.
authorPaul Brook <paul@codesourcery.com>
Mon, 12 Jul 2004 01:23:39 +0000 (01:23 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Mon, 12 Jul 2004 01:23:39 +0000 (01:23 +0000)
commit597073ace8549d2a934a1fe7d9402e1f63e91220
tree965224cf14305213a75803cd0d6ba965b02e9514
parent247fec6ee6f9e831b62a1672abc0cc8a7ffb360e
expr.c (gfc_check_assign_symbol): Handle pointer assignments.

* expr.c (gfc_check_assign_symbol): Handle pointer assignments.
* trans-array.c (gfc_trans_auto_array_allocation): Remove
initialization code.
* trans-common.c (create_common): Use gfc_conv_initializer.
* trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_initializer.
* trans-expr.c (gfc_conv_initializer): New function.
(gfc_conv_structure): Use it.
* trans.h (gfc_conv_initializer): Add prototype.
testsuite/
* gfortran.dg/pointer_init_1.f90: New test.

From-SVN: r84542
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/trans-array.c
gcc/fortran/trans-common.c
gcc/fortran/trans-decl.c
gcc/fortran/trans-expr.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_init_1.f90 [new file with mode: 0644]