Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-27 Thread Jakub Jelinek
On Fri, Jan 27, 2017 at 02:18:10PM +0100, Andreas Schwab wrote: > FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for excess > errors) > Excess errors: > /daten/aranym/gcc/gcc-20170127/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:11:7: > warning: this decimal constant is

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-27 Thread Andreas Schwab
FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for excess errors) Excess errors: /daten/aranym/gcc/gcc-20170127/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:11:7: warning: this decimal constant is unsigned only in ISO C90

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-27 Thread Rainer Orth
David Edelsohn writes: > I'm receiving the following error message for the new testcase: > > FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for > excess errors) > Excess errors: >

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-26 Thread David Edelsohn
I'm receiving the following error message for the new testcase: FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for excess errors) Excess errors: /nasfarm/edelsohn/src/src/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:11:7: warning: this decimal constant is unsigned only

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-26 Thread Richard Biener
On Thu, Jan 26, 2017 at 1:20 PM, Jakub Jelinek wrote: > On Thu, Jan 26, 2017 at 01:17:03PM +0100, Richard Biener wrote: >> On Thu, Jan 26, 2017 at 12:21 PM, Marek Polacek wrote: >> > This testcase was breaking because we found ourselves in operand_equal_p >>

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-26 Thread Jakub Jelinek
On Thu, Jan 26, 2017 at 01:17:03PM +0100, Richard Biener wrote: > On Thu, Jan 26, 2017 at 12:21 PM, Marek Polacek wrote: > > This testcase was breaking because we found ourselves in operand_equal_p > > with a COND_EXPR whose operand 2 was null -- i.e., missing else branch, > >

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-26 Thread Richard Biener
On Thu, Jan 26, 2017 at 12:21 PM, Marek Polacek wrote: > This testcase was breaking because we found ourselves in operand_equal_p > with a COND_EXPR whose operand 2 was null -- i.e., missing else branch, > which won't happen for ? : but can happen here via

Re: Fix ICE with -Wduplicated-branches (PR c/79199)

2017-01-26 Thread Jakub Jelinek
On Thu, Jan 26, 2017 at 12:21:02PM +0100, Marek Polacek wrote: > This testcase was breaking because we found ourselves in operand_equal_p > with a COND_EXPR whose operand 2 was null -- i.e., missing else branch, > which won't happen for ? : but can happen here via -Wduplicated-branches. > >