Janus Weil | 30 Jun 18:50
Picon
Favicon
Gravatar

[Patch, Fortran] PR 40594: [4.5 Regression] wrong-code

Hi all,

here is my fix for PR40594, a regression caused by my PPC patch
(r147206). The fix is simply reverting one hunk of the PPC patch. I'm
still not sure how and why this hunk got in there in the first place,
but as reverting it gave no regressions, it seems it is unneeded (and
in fact wrong, as Daniel's test case showed).

Daniel: Could you verify that the patch fixes your full code? I have
made sure that the reduced test cases in the PR are ok.

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

Cheers,
Janus

2009-06-30  Janus Weil  <janus <at> gcc.gnu.org>

	PR fortran/40594
	* trans-types.c (gfc_get_derived_type): Bugfix, reverting one hunk from
	r147206.

2009-06-30  Janus Weil  <janus <at> gcc.gnu.org>

	PR fortran/40594
	* gfortran.dg/derived_pointer_recursion_2.f90: New.
Attachment (pr40594.diff): text/x-diff, 754 bytes
Attachment (derived_pointer_recursion_2.f90): application/octet-stream, 805 bytes

Gmane