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

Janus Weil janus@gcc.gnu.org
Wed Sep 15 10:27:00 GMT 2010


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr45577_2.diff
Type: application/octet-stream
Size: 907 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100915/1e3a2c24/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allocate_derived_4.f90
Type: application/octet-stream
Size: 362 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100915/1e3a2c24/attachment-0001.obj>


More information about the Fortran mailing list