[patch, fortran] Fix PR 66385, array constructors in FORALL

Thomas Koenig tkoenig@netcologne.de
Thu Jun 4 09:46:00 GMT 2015


Hello world,

front-end optimization and FORALL do not appear to mix well.

This patch fixes an ICE resulting from an attempt by front-end
optimization to use a BLOCK inside a FORALL statement.

I will commit this as obvious in a day or so unless somebody objects.
I will also backport (time to install the gcc 5 branch...)

There would be an alternative, in principle, to put the BLOCK around
the FORALL, but frankly, I don't think it is worth spending the
effort and complicating the code.

Regards

	Thomas

2015-06-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/66385
	* frontend-passes.c (combine_array_constructor): Return early if
	inside a FORALL loop.

2015-06-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/66385
	* gfortran.dg/forall_17.f90:  New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: forall_17.f90
Type: text/x-fortran
Size: 336 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150604/571e8c99/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 451 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150604/571e8c99/attachment-0001.bin>


More information about the Fortran mailing list