[Patch, Fortran, committed] Add missing fold_convert (PR36316)

Tobias Burnus burnus@net-b.de
Tue May 27 19:22:00 GMT 2008


gfortran was generating the following tree:

    integer(kind=8) D.1026;
    integer(kind=4) D.1025;
    integer(kind=4) D.1024;
    D.1024 = D.1022->local_start;
    D.1025 = D.1022->local_end;
    D.1026 = D.1025 - D.1024;

The problem is that "D.1025-D.1024" is integer(4) while D.1026 is 
integer(8). With tree-checking enabled, this caused an ICE as Toon found 
out (thanks!).

The patch now adds the conversion.

Build, tested, check-gfortraned and committed as obvious (Rev. 136052).

Tobias

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fold_convert.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080527/334cb5c9/attachment.ksh>


More information about the Fortran mailing list