re PR fortran/56575 (An invalid OO code causes ICE)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 10 Mar 2013 13:23:58 +0000 (13:23 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 10 Mar 2013 13:23:58 +0000 (13:23 +0000)
commit8ec4321fafac5e8c03b80904a4a46d85efb115d6
tree3bca7c6bfeb4752caf475053c6a76a4a2555bbc1
parentd16d44d338c7e4632e1d34bca0351f9dbab126de
re PR fortran/56575 (An invalid OO code causes ICE)

2013-03-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56575
* expr.c (gfc_default_initializer): Check that a class declared
type has any components.
* resolve.c (resolve_fl_derived0): On failing the test for C437
set the type to BT_UNKNOWN to prevent repeat error messages.
2013-03-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56575
* gfortran.dg/class_56.f90: New test.

From-SVN: r196580
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_56.f90 [new file with mode: 0644]