https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90950
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Aug 29 15:02:44 2019 New Revision: 275042 URL: https://gcc.gnu.org/viewcvs?rev=275042&root=gcc&view=rev Log: Backported from mainline 2019-06-21 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/gomp/lastprivate-1.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/semantics.c branches/gcc-8-branch/gcc/testsuite/ChangeLog