2014-01-06  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/59589
	* class.c (comp_is_finalizable): New function to dermine if a given
	component is finalizable.
	(finalize_component, generate_finalization_wrapper): Use it.


2014-01-06  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/59589
	* gfortran.dg/class_allocate_16.f90: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206379 138bc75d-0d04-0410-961f-82ee72b054a4