]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR fortran/39865
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 May 2009 00:00:27 +0000 (00:00 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 May 2009 00:00:27 +0000 (00:00 +0000)
commitbc56d052406a7f6fca7caea1e4c450f878009614
tree939aa9b645af6be87061269b8b1cd513bd796d30
parent5b500807ca4cdbe01dea639b319b1ef611a6cd17
PR fortran/39865
* io.c (resolve_tag_format): CHARACTER array in FMT= argument
isn't an extension.  Reject non-CHARACTER array element of
assumed shape or pointer or assumed size array.
* trans-array.c (array_parameter_size): New function.
(gfc_conv_array_parameter): Add size argument.  Call
array_parameter_size if it is non-NULL.
* trans-array.h (gfc_conv_array_parameter): Adjust prototype.
* trans-expr.c (gfc_conv_function_call, gfc_trans_arrayfunc_assign):
Adjust callers.
* trans-intrinsic.c (gfc_conv_intrinsic_loc): Likewise.
* trans-io.c (gfc_convert_array_to_string): Rewritten.

* gfortran.dg/pr39865.f90: New test.
* gfortran.dg/hollerith.f90: Don't expect errors for CHARACTER
arrays in FMT=.
* gfortran.dg/hollerith_f95.f90: Likewise.
* gfortran.dg/hollerith6.f90: New test.
* gfortran.dg/hollerith7.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147507 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/fortran/ChangeLog
gcc/fortran/io.c
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-expr.c
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans-io.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/hollerith.f90
gcc/testsuite/gfortran.dg/hollerith6.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/hollerith7.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/hollerith_f95.f90
gcc/testsuite/gfortran.dg/pr39865.f90 [new file with mode: 0644]