re PR c++/90950 (OpenMP clause handling rejecting references to incomplete types...
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Jun 2019 06:46:45 +0000 (08:46 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Jun 2019 06:46:45 +0000 (08:46 +0200)
commite73fb06d5a1386fe0a18285d52bcc7865a13a84c
treeeed3d392ed4410bccece3a2a65b705805b6026db
parent080c269b61251983df2115b783f749216969d8c8
re PR c++/90950 (OpenMP clause handling rejecting references to incomplete types in templates)

PR c++/90950
* semantics.c (finish_omp_clauses): Don't reject references to
incomplete types if processing_template_decl.

* g++.dg/gomp/lastprivate-1.C: New test.

From-SVN: r272543
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/lastprivate-1.C [new file with mode: 0644]