From 2f2c591f241c00a0d962363cdd5671fe99e21ec6 Mon Sep 17 00:00:00 2001 From: jakub Date: Tue, 21 Mar 2006 16:21:24 +0000 Subject: PR c++/26691 * cp-gimplify.c (cxx_omp_clause_apply_fn): Handle default arguments. * testsuite/libgomp.c++/pr26691.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112251 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog | 5 +++++ libgomp/testsuite/libgomp.c++/pr26691.C | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 libgomp/testsuite/libgomp.c++/pr26691.C (limited to 'libgomp') diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index f93bfa56371..33d1e78da2e 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2006-03-21 Jakub Jelinek + + PR c++/26691 + * testsuite/libgomp.c++/pr26691.C: New test. + 2006-03-13 Jakub Jelinek * testsuite/libgomp.fortran/retval2.f90: New test. diff --git a/libgomp/testsuite/libgomp.c++/pr26691.C b/libgomp/testsuite/libgomp.c++/pr26691.C new file mode 100644 index 00000000000..776b31e24fb --- /dev/null +++ b/libgomp/testsuite/libgomp.c++/pr26691.C @@ -0,0 +1,20 @@ +// PR c++/26691 + +struct A +{ + int n; + A (int i = 3) : n (i) {} +}; + +int +main () +{ + A a; + int err = 0; +#pragma omp parallel private (a) reduction (+:err) + if (a.n != 3) + err++; + + return err; + } + -- cgit v1.2.3