https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82112
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Sep 15 11:22:57 2017 New Revision: 252803 URL: https://gcc.gnu.org/viewcvs?rev=252803&root=gcc&view=rev Log: Backported from mainline 2017-09-12 Jakub Jelinek <ja...@redhat.com> PR target/82112 * c-common.c (sync_resolve_size): Instead of c_dialect_cxx () assertion check that in the condition. (get_atomic_generic_size): Likewise. Before testing if parameter has pointer type, if it has array type, call for C++ default_conversion to perform array-to-pointer conversion. * c-c++-common/pr82112.c: New test. * gcc.dg/pr82112.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/c-c++-common/pr82112.c branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr82112.c Modified: branches/gcc-7-branch/gcc/c-family/ChangeLog branches/gcc-7-branch/gcc/c-family/c-common.c branches/gcc-7-branch/gcc/testsuite/ChangeLog