This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR58754 - [4.9/5 Regression] ICE on allocating character array with source
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: "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: Thu, 22 Oct 2015 19:17:42 +0200
- Subject: Re: [Patch, fortran] PR58754 - [4.9/5 Regression] ICE on allocating character array with source
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGiKp0mOn-t-UFUnUw5TKHfe50ofV1Lm_bi9O+vszVgtzmg at mail dot gmail dot com>
Dear All,
Only the testcase will be applied to 4.9. At some time, it seems to
have fixed itself!
Cheers
Paul
On 22 October 2015 at 16:31, Paul Richard Thomas
<paul.richard.thomas@gmail.com> wrote:
> Dear All,
>
> This patch speaks for itself. It is by no means as comprehensive as
> the work on ALLOCATE that Andre has done on 6 branch but has the
> advantage for 5 branch that it is simple and steers the failing code
> to the standard assignment, which should be safe.
>
> Bootstraps and regtests on FC21/x86_64.
>
> OK for 4.9 and 5 branches?
>
> Cheers
>
> Paul
>
> 2015-10-22 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/58754
> * trans-stmt.c (gfc_trans_allocate): Do not use the scalar
> character assignment if the allocate expression sis an array
> descriptor.
>
> 2015-10-22 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/58754
> * gfortran.dg/pr58754.f90: New test
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx