]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/59297 (ICE: openmp atomic with indirect LHS)
authorJakub Jelinek <jakub@redhat.com>
Wed, 7 May 2014 16:09:41 +0000 (18:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 May 2014 16:09:41 +0000 (18:09 +0200)
commit89fc3a0ffe48047157d6bfe71a65c1fbc72788bc
treea305d813a692fd4b920f6eb9b5da6f15e45e0b58
parenta4639ccb038a3a8e650834c626408f0f409f6c8a
backport: re PR c++/59297 (ICE: openmp atomic with indirect LHS)

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*.

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