re PR c++/36308 (OpenMP privatized vars don't get dtors called if they are virtual)
authorJakub Jelinek <jakub@redhat.com>
Fri, 23 May 2008 11:52:44 +0000 (13:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 23 May 2008 11:52:44 +0000 (13:52 +0200)
commit7a0112e7a42a5a3891d93fa449348df6446fc8bb
tree3a38cb4eac5c303a4914f7d2e4ec296b47965633
parent3fda325236b11bff7210616f03247012d393a95f
re PR c++/36308 (OpenMP privatized vars don't get dtors called if they are virtual)

PR c++/36308
* semantics.c (omp_clause_info_fndecl): New function.
(finish_omp_clauses): Use it.

* testsuite/libgomp.c++/ctor-11.C: New test.
* testsuite/libgomp.c++/ctor-12.C: New test.

From-SVN: r135798
gcc/cp/ChangeLog
gcc/cp/semantics.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/ctor-11.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/ctor-12.C [new file with mode: 0644]