re PR c/67495 (#pragma omp atomic ICEs)
authorJakub Jelinek <jakub@redhat.com>
Wed, 9 Sep 2015 07:23:11 +0000 (09:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 9 Sep 2015 07:23:11 +0000 (09:23 +0200)
commitf4b189d53bbc5def47c17cdc04c1c7fd291f29b1
tree5f941573079243b9c93eaa04c1a90288a8a88bf5
parent04e49571a086621e33261b8e25b35a577195f2d6
re PR c/67495 (#pragma omp atomic ICEs)

PR c/67495
* c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
instead of c_parser_unary_expression.  If the result is !lvalue_p,
wrap the result of c_fully_fold into NON_LVALUE_EXPR.

* gcc.dg/gomp/pr67495.c: New test.

From-SVN: r227576
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr67495.c [new file with mode: 0644]