[Bug c/67495] #pragma omp atomic ICEs
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 9 07:23:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67495
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep 9 07:23:11 2015
New Revision: 227576
URL: https://gcc.gnu.org/viewcvs?rev=227576&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:
trunk/gcc/testsuite/gcc.dg/gomp/pr67495.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list