This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran, Patch, PR72698, v1] [5/6/7 Regression] ICE in lhd_incomplete_type_error, at langhooks.c:205
- From: Andre Vehreschild <vehre at gmx dot de>
- To: GCC-Patches-ML <gcc-patches at gcc dot gnu dot org>, GCC-Fortran-ML <fortran at gcc dot gnu dot org>
- Date: Sun, 7 Aug 2016 15:40:32 +0200
- Subject: Re: [Fortran, Patch, PR72698, v1] [5/6/7 Regression] ICE in lhd_incomplete_type_error, at langhooks.c:205
- Authentication-results: sourceware.org; auth=none
- References: <20160807135234.7dd4c7fc@vepi2>
To prevent further confusion: The patch-file
pr72698_1.patch is for trunk and the gcc-6-branch, the
pr72698_v5_1.patch is for gcc-5-branch.
Sorry for not pointing that out immediately.
- Andre
On Sun, 7 Aug 2016 13:52:34 +0200
Andre Vehreschild <vehre@gmx.de> wrote:
> Hi all,
>
> attached patch fixes the ICE caused by a zero-sized string. Assigning
> that string to a temporary variable obviously did not work out. The
> patch fixes this by checking for zero-sized strings in SOURCE= and not
> producing the code to assign "nothing" to the temporary
> variable and later to the allocated memory. The version for gcc-5 had
> to be adapted slightly, because the version of the ALLOCATE()
> implementation is way behind.
>
> Bootstrapped and regtested on x86_64-linux-gnu/F23. Ok for trunk,
> gcc-6 and gcc-5?
>
> Regards,
> Andre
--
Andre Vehreschild * Email: vehre ad gmx dot de