[Patch, fortran, PR44672, v2] [F08] ALLOCATE with SOURCE and no array-spec

Andre Vehreschild vehre@gmx.de
Wed Apr 1 13:15:00 GMT 2015


Hi all,

during debugging another fortran code, I figured that some cases were not yet
met. Especially the case where a class array is in the source= or mold=
expression. This new version of the patch fixes the issue now.

Bootstraps and regtests ok on x86_64-linux-gnu/F20.

Ok for 5.2 trunk?

Regards,
	Andre

On Mon, 30 Mar 2015 19:47:49 +0200
Andre Vehreschild <vehre@gmx.de> wrote:

> Dear all,
> 
> please find attach a patch fixing pr44672:
> 
> integer, dimension(:) :: arr
> allocate(arr, source = [1,2,3])
> 
> as for F2008:C633 now is no longer flagged, beside when you insist on
> -std=f2003 or lower. Furthermore does the patch implement the F2008 feature of
> obsoleting the explicit array specification on the arrays to allocate, when
> an array valued source=/mold= expression is given.
> 
> Bootstrap and regtests ok on x86_64-linux-gnu/F20.
> 
> This batched is based on a trunk having my latest for pr60322 patched in (else
> deltas may occur).
> 
> Ok for 5.2 trunk?
> 
> Regards,
> 	Andre


-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr44672_2.clog
Type: application/octet-stream
Size: 444 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150401/b3c58fc3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr44672_2.patch
Type: text/x-patch
Size: 20907 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150401/b3c58fc3/attachment.bin>


More information about the Fortran mailing list