This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, Fortran] PR 45577: [4.6 Regression] Bogus(?) "... type incompatible with source-expr ..." error


Hi all,

here is a patch for this regression. It basically reverts the handling
of default initialization upon allocation to what it was before I
started messing with MOLD.

Regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2010-09-15  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/45577
	* resolve.c (resolve_allocate_expr): Do default initialization via
	EXEC_INIT_ASSIGN.


2010-09-15  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/45577
	* gfortran.dg/allocate_derived_4.f90: New.

Attachment: pr45577_2.diff
Description: Binary data

Attachment: allocate_derived_4.f90
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]