This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] -Wduplicated-branches -fopenmp ICE in inchash::add_expr (PR c++/79672)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 9 Mar 2017 00:05:05 +0100
- Subject: Re: [PATCH] -Wduplicated-branches -fopenmp ICE in inchash::add_expr (PR c++/79672)
- Authentication-results: sourceware.org; auth=none
- References: <20170301190905.GG3172@redhat.com> <20170308230217.GB3172@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Mar 09, 2017 at 12:02:17AM +0100, Marek Polacek wrote:
> Ping.
>
> On Wed, Mar 01, 2017 at 08:09:05PM +0100, Marek Polacek wrote:
> > The following testcase ICEd with -Wduplicated-branches and -fopenmp
> > because we tried to has omp_parallel expression that contained some
> > TREE_VECs, but those aren't handled in inchash::add_expr. Handling
> > that is easy and fixes the ICE.
> >
> > Bootstrapped/regtested on x86_64-linux, ok for trunk?
> >
> > 2017-03-01 Marek Polacek <polacek@redhat.com>
> >
> > PR c++/79672
> > * tree.c (inchash::add_expr): Handle TREE_VEC.
> >
> > * g++.dg/warn/Wduplicated-branches2.C: Fix PR.
> > * g++.dg/warn/Wduplicated-branches3.C: New test.
Ok, thanks.
Jakub