Hi! On Wed, 10 Sep 2014 12:23:04 +0200, Jakub Jelinek <ja...@redhat.com> wrote: > On Wed, Sep 10, 2014 at 12:12:03PM +0200, Thomas Schwinge wrote: > > Are the following issues known? > > No, please file a PR.
Will do tomorrow. > Supposedly either we should call cp_omp_mappable_type > only for non-type-dependent expressions, or not at all if > processing_template_decl and only do that once finish_omp_clauses is called > with !processing_template_decl. Thanks for the suggestion. I tried experimenting with that, but with no experience in the C++ front end, I didn't get useful results -- I got past the original error, but then got ICEs in omp-low. > > template <typename T> > > void f(T A, T B) > > { > > extern int *v; > > T a = 2; > > T b = 4; > > > > #pragma omp target map(to: v[a:b]) > > v[a] = 0; > > > > #pragma omp target map(to: v[A:B]) > > v[a] = 0; > > } > > > > void g() > > { > > f(1, 5); > > } Grüße, Thomas
pgp5OvbQq4AXz.pgp
Description: PGP signature