re PR fortran/47728 ([OOP] ICE on invalid CLASS declaration)
authorJanus Weil <janus@gcc.gnu.org>
Mon, 14 Feb 2011 18:12:55 +0000 (19:12 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 14 Feb 2011 18:12:55 +0000 (19:12 +0100)
commitce2ab24c22e3bc5a8a2993ef7de3fea3db7d4309
treeb51794372ca1494e209f190ba27e6bfe9fb0a5f2
parentc7dd803e61952604df6992be3c5b68cb1abfd983
re PR fortran/47728 ([OOP] ICE on invalid CLASS declaration)

2011-02-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47728
* class.c (gfc_build_class_symbol): Give a fatal error on polymorphic
arrays.
* primary.c (gfc_match_varspec): Avoid ICE for invalid class
declaration.

2011-02-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47728
* gfortran.dg/class_38.f03: New.

From-SVN: r170144
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_38.f03 [new file with mode: 0644]