This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR61459 - [4.8/4.9/4.10 Regression] segfault when assigning to allocatable function result from matmul result
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 7 Jul 2014 10:05:44 +0200
- Subject: Re: [Patch, fortran] PR61459 - [4.8/4.9/4.10 Regression] segfault when assigning to allocatable function result from matmul result
- Authentication-results: sourceware.org; auth=none
Paul Richard Thomas wrote:
> This PR is caused by a rather unfortunate cast for the pointer to the
> return value from matmul:
[...]
> The fix is obvious (ie use its natural kind)
[...]
> Dominique points out that the patch fixes PR58883 as well. I'll
> enhance the testcase appropriately.
Nice!
> Unless anybody has any objections, I'll commit to trunk tonight and to
> 4.8 and 4.9 next weekend.
Looks good to me. As the patch shouldn't have side effects and as Jakub
intents to do a 4.9.1 RC early this week, I'd prefer it the 4.9 patch
would be committed earlier.
Tobias