re PR c++/49223 (Internal compiler error when using OpenMP)
authorJakub Jelinek <jakub@redhat.com>
Mon, 30 May 2011 12:16:04 +0000 (14:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 May 2011 12:16:04 +0000 (14:16 +0200)
commit8a8c12a3cd7b8905616680d458249f2ec865396c
treeca2dbdc56edba786add5327f986d39143c80339c
parentc87765d6353faf250e749cc900a918f95ff1dc0c
re PR c++/49223 (Internal compiler error when using OpenMP)

PR c++/49223
* semantics.c (finish_omp_clauses): Call require_complete_type
even for copyin/copyprivate clauses.  Only call
cxx_omp_create_clause_info if inner_type is COMPLETE_TYPE_P.

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

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