This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 59628
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Fri, 12 Dec 2014 22:17:37 +0100
- Subject: Re: [C++ Patch] PR 59628
- Authentication-results: sourceware.org; auth=none
- References: <548B5A83 dot 5030206 at oracle dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Dec 12, 2014 at 10:13:39PM +0100, Paolo Carlini wrote:
> Hi,
>
> I think that to avoid ICE-ing during error recovery when DECL_SAVED_TREE is
> NULL_TREE we want to simply bail out and return true to the caller. Tested
> x86_64-linux.
>
> Thanks,
> Paolo.
>
> //////////////////
> /cp
> 2014-12-12 Paolo Carlini <paolo.carlini@oracle.com>
>
> PR c++/59628
> * semantics.c (finish_omp_reduction_clause): Early return true
> if DECL_SAVED_TREE (id) is NULL_TREE.
>
> /testsuite
> 2014-12-12 Paolo Carlini <paolo.carlini@oracle.com>
>
> PR c++/59628
> * g++.dg/gomp/pr59628.C: New.
Ok, thanks.
Jakub