https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105536

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The issue occurred at real-world code (sollve_vv testcase before it was fixed).

The issue is because of:
   if (c_parser_next_token_is (parser, CPP_NAME)
      && c_parser_peek_2nd_token (parser)->type == CPP_COLON)
/* ... Parse reproducible/unconstrained ... */

  p = IDENTIFIER_POINTER (c_parser_peek_token (parser)->value);
  if (strcmp (p, "concurrent") != 0)
    {
      c_parser_error (parser, "expected %<concurrent%>");
      goto out_err;
    }

And the error message is then 'expected concurrent'
   + auto-added "before <what comes instead>"

That message is fine – except for this specific case it is somewhat misleading.

→ The question is whether we want to handle this in a different way
  (yield better error message, how?)
  OR – whether that's just too specific and close this PR as WONTFIX?

Reply via email to