[Fortran, Patch, PR104684, v1] Fix gimple error when pointer assigning alloc array.

Andre Vehreschild vehre@gmx.de
Wed Mar 5 08:38:12 GMT 2025


Hi Harald,

thanks for the review. Committed as gcc-15-7826-g705ae582d51.

The fix for pr107143 may be something similar. I am having a harder time getting
a testcase correct, then fixing the gimplification fault (that's fixed, but the
test is fouling me).

Thanks again,
	Andre

On Tue, 4 Mar 2025 22:58:37 +0100
Harald Anlauf <anlauf@gmx.de> wrote:

> Hi Andre,
>
> Am 04.03.25 um 17:11 schrieb Andre Vehreschild:
> > Hi all,
> >
> > attached patch fixes a gimplification fault when a pointer assignment to an
> > allocatable array is done. The tree type is different, because of that flag
> > in the lang_specific structure. View-converting the type fixes the issue.
> >
> > Regtests ok on x86_64-pc-linux-gnu / F41. Ok for mainline?
>
> this LGTM.
>
> I am wondering if this kind of fix also helps with pr107143,
> where pointer remapping is used, but your code is not reached
> in that situation.
>
> Thanks for the patch!
>
> Harald
>
> > Regards,
> > 	Andre
> > --
> > Andre Vehreschild * Email: vehre ad gmx dot de
>


--
Andre Vehreschild * Email: vehre ad gmx dot de


More information about the Fortran mailing list