Commit Graph

2 Commits

Author SHA1 Message Date
Jakub Jelinek
c2898ec950 re PR c++/36237 (internal compiler error: in lower_stmt, at gimple-low.c:282 erase 'private(localTodoStack)' it compiles successfully.)
PR c++/36237
	* cp-gimplify.c (cxx_omp_clause_apply_fn): Call
	fold_build_cleanup_point_expr on build_call_a results.

	* g++.dg/gomp/pr36237.C: New test.

From-SVN: r135802
2008-05-23 15:21:47 +02:00
Jakub Jelinek
7a0112e7a4 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
2008-05-23 13:52:44 +02:00