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, PR60189, Cilk+] Fix for ICE with incorrect Cilk_sync usage


> 
> >> +           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


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