reduction clause with inscan modifier.
* parser.c (cp_parser_omp_clause_reduction): Call sorry_at on
reduction clause with inscan modifier.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265989
138bc75d-0d04-0410-961f-
82ee72b054a4
2018-11-09 Jakub Jelinek <jakub@redhat.com>
+ * c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on
+ reduction clause with inscan modifier.
+
* c-parser.c (c_parser_omp_requires): Call sorry_at on requires
clauses other than atomic_default_mem_order.
if (strcmp (p, "task") == 0)
task = true;
else if (strcmp (p, "inscan") == 0)
- inscan = true;
+ {
+ inscan = true;
+ sorry ("%<inscan%> modifier on %<reduction%> clause "
+ "not supported yet");
+ }
if (task || inscan)
{
c_parser_consume_token (parser);
2018-11-09 Jakub Jelinek <jakub@redhat.com>
+ * parser.c (cp_parser_omp_clause_reduction): Call sorry_at on
+ reduction clause with inscan modifier.
+
* parser.c (cp_parser_omp_requires): Call sorry_at on requires
clauses other than atomic_default_mem_order.
if (strcmp (p, "task") == 0)
task = true;
else if (strcmp (p, "inscan") == 0)
- inscan = true;
+ {
+ inscan = true;
+ sorry ("%<inscan%> modifier on %<reduction%> clause "
+ "not supported yet");
+ }
if (task || inscan)
{
cp_lexer_consume_token (parser->lexer);