Hi PA,

Paul-Antoine Arras wrote:
This amended patch checks the context and adds the suggested testcase.

LGTM - thanks!

     Do not call cp_parser_omp_dispatch directly in cp_parser_pragma
This is a followup to
     ed49709acda OpenMP: C++ front-end support for dispatch + adjust_args.
The call to cp_parser_omp_dispatch only belongs in cp_parser_omp_construct. In
     cp_parser_pragma, handle PRAGMA_OMP_DISPATCH by calling 
cp_parser_omp_construct.
gcc/cp/ChangeLog: * parser.cc (cp_parser_pragma): Replace call to cp_parser_omp_dispatch
             with cp_parser_omp_construct.
gcc/testsuite/ChangeLog: * g++.dg/gomp/dispatch-8.C: New test.

Tobias

Reply via email to