Fix templatized C++ OpenACC 'cache' directive ICEs
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 25 Nov 2020 12:03:52 +0000 (13:03 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 25 Nov 2020 18:57:39 +0000 (19:57 +0100)
commit0cab70604cfda30bc64351b39493ef884ff7ba10
treec80b71b219a7be10a77e93166f87271ad0a1e1d0
parent4919ed711c1d02845f2843f6b0a70c27f9e6d434
Fix templatized C++ OpenACC 'cache' directive ICEs

This has been broken forever, whoops...

gcc/cp/
* pt.c (tsubst_omp_clauses): Handle 'OMP_CLAUSE__CACHE_'.
(tsubst_expr): Handle 'OACC_CACHE'.
gcc/testsuite/
* c-c++-common/goacc/cache-1.c: Update.
* c-c++-common/goacc/cache-2.c: Likewise.
* g++.dg/goacc/cache-1.C: New.
* g++.dg/goacc/cache-2.C: Likewise.
libgomp/
* testsuite/libgomp.oacc-c++/cache-1.C: New.
* testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
gcc/cp/pt.c
gcc/testsuite/c-c++-common/goacc/cache-1.c
gcc/testsuite/c-c++-common/goacc/cache-2.c
gcc/testsuite/g++.dg/goacc/cache-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/goacc/cache-2.C [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c++/cache-1.C [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/cache-1.c