[Patch, fortran] PR35759 and PR35756 - WHERE with overlap with ELSEWHERE error

Paul Richard Thomas paul.richard.thomas@gmail.com
Thu May 15 21:51:00 GMT 2008


Dominique,
>
> Thank you for being stubborn!
>
> On Mon, Mar 31, 2008 at 11:38 PM, Dominique Dhumieres

I retired to think again on this patch after you correctly pointed out
the problem.  I returned to this and PR35756 in the last few days.  I
produced a variant of gfc_where_3 that did the job... until I looked
at the code.  It was identical to that produced by gfc_trans_where_2.
At this point, I underwent a lightbulb moment - this is a problem with
getting the dependency checking right!

The attached bootstraps and regtests on x86_ia64/FC8 - OK for trunk and 4.3?

Paul

2008-05-15  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/35756
	PR fortran/35759
	* trans-stmt.c (gfc_trans_where): Tighten up the dependency
	check for calling gfc_trans_where_3.

2008-05-15  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/35756
	PR fortran/35759
	* gfortran.dg/where_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 4325 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080515/f50da48e/attachment.bin>


More information about the Gcc-patches mailing list