https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67495
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Sep 9 07:27:15 2015 New Revision: 227580 URL: https://gcc.gnu.org/viewcvs?rev=227580&root=gcc&view=rev Log: 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. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/gomp/pr67495.c Modified: branches/gcc-5-branch/gcc/c/ChangeLog branches/gcc-5-branch/gcc/c/c-parser.c branches/gcc-5-branch/gcc/testsuite/ChangeLog