re PR fortran/24158 (ICE in f951 with nested, recursive derived types)
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 26 Oct 2005 05:20:19 +0000 (05:20 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 26 Oct 2005 05:20:19 +0000 (05:20 +0000)
commit976e21f67321ad483895471c5f285a1880a47b4a
treecb4b3fbc58344b406d2294ab4e6cbe21fb873c8f
parent02f8406bd02ea1016df74868d5576138fe760d7d
re PR fortran/24158 (ICE in f951 with nested, recursive derived types)

2005-10-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/24158
* decl.c (gfc_match_data_decl): Correct broken bit of code
that prevents undefined derived types from being used as
components of another derived type.
* resolve.c (resolve_symbol): Add backstop error when derived
type variables arrive here with a type that has no components.

2005-10-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/24158
gfortran.dg/derived_recursion.f90: New test.
gfortran.dg/implicit_actual.f90: New test.

From-SVN: r105913
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/derived_recursion.f90 [new file with mode: 0755]
gcc/testsuite/gfortran.dg/implicit_actual.f90 [new file with mode: 0755]