This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] -Wduplicated-branches -fopenmp ICE in inchash::add_expr (PR c++/79672)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]