Commit f851ee5c by Paul Thomas

[multiple changes]

2005-01-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25730
	* trans-types.c (copy_dt_decls_ifequal): Copy backend decl for
	character lengths.

2006-01-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25730
	* gfortran.dg/used_types_1.f90: New test.

From-SVN: r109573
parent 0966949b
2005-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25730
* trans-types.c (copy_dt_decls_ifequal): Copy backend decl for
character lengths.
2006-01-09 Andrew Pinski <pinskia@physics.uc.edu>
fortran/24936
......
......@@ -1418,12 +1418,16 @@ copy_dt_decls_ifequal (gfc_symbol *from, gfc_symbol *to)
a derived type, we need a copy of its component declarations.
This is done by recursing into gfc_get_derived_type and
ensures that the component's component declarations have
been built. */
been built. If it is a character, we need the character
length, as well. */
for (; to_cm; to_cm = to_cm->next, from_cm = from_cm->next)
{
to_cm->backend_decl = from_cm->backend_decl;
if (from_cm->ts.type == BT_DERIVED)
gfc_get_derived_type (to_cm->ts.derived);
else if (from_cm->ts.type == BT_CHARACTER)
to_cm->ts.cl->backend_decl = from_cm->ts.cl->backend_decl;
}
return 1;
......
2006-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25730
* gfortran.dg/used_types_1.f90: New test.
2006-01-10 Hans-Peter Nilsson <hp@axis.com>
PR target/25718
! { dg-do compile }
! This checks that the fix for PR25730, which was a regression
! caused by the fix for PR19362.
!
! Contributed by Andrea Bedini <andrea.bedini@gmail.com>
!==============
MODULE testcase
TYPE orbit_elem
CHARACTER(4) :: coo
END TYPE orbit_elem
END MODULE
MODULE tp_trace
USE testcase
TYPE(orbit_elem) :: tp_store
CONTAINS
SUBROUTINE str_clan()
USE testcase
TYPE(orbit_elem) :: mtpcar
mtpcar%coo='a' !ICE was here
END SUBROUTINE str_clan
END MODULE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment