This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31867] [4.2 only] function result with character LEN computed at run time
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2007 18:51:19 -0000
- Subject: [Bug fortran/31867] [4.2 only] function result with character LEN computed at run time
- References: <bug-31867-14444@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pault at gcc dot gnu dot org 2007-05-31 18:51 -------
Subject: Bug 31867
Author: pault
Date: Thu May 31 18:50:56 2007
New Revision: 125235
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125235
Log:
2007-05-31 Paul Thomas <pault@gcc.gnu.org>
backport from trunk
PR fortran/31483
* trans-expr.c (gfc_conv_function_call): Give a dummy
procedure the correct type if it has alternate returns.
PR fortran/31540
* resolve.c (resolve_fl_procedure): Resolve constant character
lengths.
PR fortran/31867
PR fortran/31994
* trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
offset for non-descriptor, source arrays and correct for stride
not equal to one before writing to field of output descriptor.
2007-05-31 Paul Thomas <pault@gcc.gnu.org>
backport from trunk
PR fortran/31483
* gfortran.dg/altreturn_5.f90: New test.
PR fortran/31540
* gfortran.dg/char_result_5.f90: New test.
PR fortran/31867
* gfortran.dg/char_length_5.f90: New test.
PR fortran/31994
* gfortran.dg/array_reference_1.f90: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/altreturn_5.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/array_reference_1.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/char_length_5.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/char_result_13.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/resolve.c
branches/gcc-4_2-branch/gcc/fortran/trans-array.c
branches/gcc-4_2-branch/gcc/fortran/trans-expr.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31867