https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82112

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 16 18:39:47 2017
New Revision: 252886

URL: https://gcc.gnu.org/viewcvs?rev=252886&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-5-branch/gcc/testsuite/c-c++-common/pr82112.c
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr82112.c
Modified:
    branches/gcc-5-branch/gcc/c-family/ChangeLog
    branches/gcc-5-branch/gcc/c-family/c-common.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Reply via email to