Re: [PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2020-01-18 Thread Jakub Jelinek
On Fri, Jan 17, 2020 at 03:11:40PM +0100, Jakub Jelinek wrote: > On Fri, Jan 17, 2020 at 09:07:01AM -0500, Jason Merrill wrote: > > On 12/30/19 3:51 PM, Kerem Kat wrote: > > > +/* { dg-message "expected" "expected" { target *-*-* } .3 } */ > > > > Dejagnu doesn't like this: > > > > ERROR: c-c++-c

Re: [PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2020-01-17 Thread Jakub Jelinek
On Fri, Jan 17, 2020 at 09:07:01AM -0500, Jason Merrill wrote: > On 12/30/19 3:51 PM, Kerem Kat wrote: > > +/* { dg-message "expected" "expected" { target *-*-* } .3 } */ > > Dejagnu doesn't like this: > > ERROR: c-c++-common/pr92833-4.c -std=c++98: expected integer but got ".3" > for " dg-messa

Re: [PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2020-01-17 Thread Jason Merrill
On 12/30/19 3:51 PM, Kerem Kat wrote: +/* { dg-message "expected" "expected" { target *-*-* } .3 } */ Dejagnu doesn't like this: ERROR: c-c++-common/pr92833-4.c -std=c++98: expected integer but got ".3" for " dg-message 4 "expected" "expected" { target *-*-* } .3 " Jason

Re: [PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2020-01-17 Thread Kerem Kat
Thank you for reviewing and committing it. Kerem On Fri, Jan 17, 2020 at 1:04 AM Jeff Law wrote: > On Thu, 2020-01-16 at 23:43 +, Joseph Myers wrote: > > Thanks, patch committed. > Beat me to it :-) I spun it yesterday, but didn't get around to > committing it. > jeff > >

Re: [PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2020-01-16 Thread Jeff Law
On Thu, 2020-01-16 at 23:43 +, Joseph Myers wrote: > Thanks, patch committed. Beat me to it :-) I spun it yesterday, but didn't get around to committing it. jeff

Re: [PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2020-01-16 Thread Joseph Myers
Thanks, patch committed. -- Joseph S. Myers jos...@codesourcery.com

[PATCH] Fix ICE caused by swallowing a token in c_parser_consume_token

2019-12-30 Thread Kerem Kat
Hi, This patch fixes ICE on invalid code, specifically files that have conflict-marker-like signs before EOF. 2019-12-30 Kerem Kat PR c/92833 gcc/ * c-parser.c (c_parser_consume_token): Fix peeked token stack pop to support 4 available tokens. * c-c++-common/pr92833-*.c: New test