[patch, fortran] Fix PR 78238, ICE with SELECT TYPE with -fdefault-integer-8

Jerry DeLisle jvdelisle@charter.net
Sat Feb 24 21:52:00 GMT 2018


On 02/24/2018 12:04 PM, Thomas Koenig wrote:
> Hello world,
> 
> the attached patch fixes a 7/8 regression with SELECT TYPE where
> the constant had the wrong type with -fdefault-integer-8.
> 
> Regression-tested. OK for trunk and gcc-7?
> 
> Regards
> 
>      Thomas
> 
> 2018-01-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
>          PR fortran/78238
>          * gfortran.h (gfc_integer_4_kind): Define.
>          * resolve.c (resolve_select_type): Make sure that the
>          kind of c->high is gfc_integer_4_kind.
> 
> 2018-01-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
>          PR fortran/78238
>          * gfortran.dg/select_type_40.f90: New test.

OK Thomas,

Regards,

Jerry



More information about the Gcc-patches mailing list