This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Fix PR 78238, ICE with SELECT TYPE with -fdefault-integer-8
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: Thomas Koenig <tkoenig at netcologne dot de>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 24 Feb 2018 13:52:36 -0800
- Subject: Re: [patch, fortran] Fix PR 78238, ICE with SELECT TYPE with -fdefault-integer-8
- Authentication-results: sourceware.org; auth=none
- References: <f5403b79-3b29-1915-8a50-1b7cde4b73ce@netcologne.de>
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