[Patch, fortran] PR32236 - internal compiler error: in gfc_assign_data_value, at fortran/data.c:288

Paul Thomas paulthomas2@wanadoo.fr
Sun Jun 17 15:30:00 GMT 2007


:ADDPATCH fortran:

This patch converts an ICE into an error, since the contributor's 
testcase is clearly capable of triggering it and is wrong code.  The 
order of checking has been inverted to give the opportunity to free the 
initialization expression; thereby preventing a repetition of the error.

Regtested on Cygwin_NT/am864 - OK for trunk?

(I will bootstrap it before commiting.)

2007-06-17  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/32236
    * data.c (gfc_assign_data_value): Change the ICE on an array
    reference initializer not being an array into an error and
    clear init to prevent a repetition of the error..

2007-06-17  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/32236
    * gfortran.dg/data_initialized_2.f90 : New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32236.diff
Type: text/x-patch
Size: 1644 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070617/51deb89f/attachment.bin>


More information about the Fortran mailing list