This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH, PR60189, Cilk+] Fix for ICE with incorrect Cilk_sync usage
- From: "Zamyatin, Igor" <igor dot zamyatin at intel dot com>
- To: Jason Merrill <jason at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: "GCC Patches (gcc-patches at gcc dot gnu dot org)" <gcc-patches at gcc dot gnu dot org>, "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- Date: Fri, 11 Apr 2014 17:38:11 +0000
- Subject: RE: [PATCH, PR60189, Cilk+] Fix for ICE with incorrect Cilk_sync usage
- Authentication-results: sourceware.org; auth=none
- References: <0EFAB2BDD0F67E4FB6CCC8B9F87D7569429DBFEF at IRSMSX103 dot ger dot corp dot intel dot com> <0EFAB2BDD0F67E4FB6CCC8B9F87D7569429DC138 at IRSMSX103 dot ger dot corp dot intel dot com> <20140410142731 dot GF1817 at tucnak dot redhat dot com> <5348027F dot 1050407 at redhat dot com>
>
> >> + token = cp_lexer_peek_token (parser->lexer);
> >> + if (token->type != CPP_SEMICOLON)
> >> + {
> >> + error_at (token->location, "%<_Cilk_sync%> must be followed"
> >> + " by semicolon");
> >> + postfix_expression = error_mark_node;
> >> + break;
> >> + }
>
> Any reason not to use cp_parser_require here?
Right! Will try it and repost the patch. Thanks!
Igor
>
> Jason