OSDN Git Service

Backported from mainline
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2014 16:09:41 +0000 (16:09 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2014 16:09:41 +0000 (16:09 +0000)
commita7946e2283d354826b3f3a4c29e079b3dd496a9a
treea305d813a692fd4b920f6eb9b5da6f15e45e0b58
parent0cf16f126b69c6f58f208a3d2fd2659d2a0a58b7
Backported from mainline
2013-11-28  Jakub Jelinek  <jakub@redhat.com>

PR c++/59297
* semantics.c (finish_omp_atomic): Call finish_expr_stmt
rather than add_stmt.

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

2013-05-31  Jason Merrill  <jason@redhat.com>

PR c++/56930
* semantics.c (potential_constant_expression_1): Handle OMP_ATOMIC*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@210178 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr59297.C [new file with mode: 0644]