re PR c++/84341 (ICE with #pragma omp atomic)
authorJakub Jelinek <jakub@redhat.com>
Mon, 12 Feb 2018 22:25:41 +0000 (23:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Feb 2018 22:25:41 +0000 (23:25 +0100)
commitd69aeeeed06b0fe5567f04343cf7a8a7aa3e26f5
treedc6192333e804891ba2cb1526f35b64aaac75a37
parent2b0dfc8429f6f0fcd82487ed8dc2a6db578e26f4
re PR c++/84341 (ICE with #pragma omp atomic)

PR c++/84341
* parser.c (cp_parser_binary_expression): Use build_min instead of
build2_loc to build the no_toplevel_fold_p toplevel binary expression.

* c-c++-common/gomp/pr84341.c: New test.

From-SVN: r257607
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr84341.c [new file with mode: 0644]