On Wed, Mar 09, 2016 at 10:51:41AM -0800, Cesar Philippidis wrote: > This patch teaches the c and c++ FEs how to update the list of clauses > after calling c_finish_omp_clauses when parsing combined loop > constructs. The problem here is, if an invalid clause isn't removed by > the FE, the gimplifier will ICE because the tree node representing the > clause contains incomplete fields. So updating the split clauses allows > the compiler to gracefully error. > > Is this patch ok for trunk? It's specific to openacc. > > Thanks, > Cesar
> 2016-03-09 Cesar Philippidis <ce...@codesourcery.com> > > gcc/c/ > * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses > when calling c_finish_omp_clauses. > > gcc/cp/ > * parser.c (cp_parser_oacc_loop): Update cclauses and clauses > when calling c_finish_omp_clauses. > > gcc/testsuite/ > * c-c++-common/goacc/combined-directives-2.c: New test. Ok, thanks. Jakub