[Patch, pr69011, fortran, v1] [6 Regression] [OOP] ICE in gfc_advance_chain for ALLOCATE with SOURCE
Thomas Koenig
tkoenig@netcologne.de
Mon Dec 28 17:31:00 GMT 2015
Hi Andre,
> for bug pr69011 I like to propose the attached patch. The patch fixes
> the ICE and furthermore makes sure, that for this case of referencing a
> polymorphic object the correct vtype is selected. Previously the
> declared vtype of the source=-expression was taken for the object(s) to
> allocate. Now the actual vtype is taken, i.e., the vptr component of
> source='s object is taken. This is important when source references a
> subclass.
>
> Bootstrapped and regtested ok on x86_64-pc-linux-gnu/f23.
>
> Ok for trunk?
The patch also solves the original problem.
OK for trunk, and thanks a lot for the patch!
Thomas
More information about the Gcc-patches
mailing list