https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 20:54:16 2019 New Revision: 270741 URL: https://gcc.gnu.org/viewcvs?rev=270741&root=gcc&view=rev Log: Backported from mainline 2019-03-26 Jakub Jelinek <ja...@redhat.com> PR c++/89796 * semantics.c (finish_omp_atomic): Add warning_sentinel for -Wunused-value around finish_expr_stmt call. * g++.dg/gomp/pr89796.C: New test. * gcc.dg/gomp/pr89796.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/gomp/pr89796.C branches/gcc-8-branch/gcc/testsuite/gcc.dg/gomp/pr89796.c Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/semantics.c branches/gcc-8-branch/gcc/testsuite/ChangeLog