2017-09-15 Jakub Jelinek Backported from mainline 2017-09-12 Jakub Jelinek 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. --- gcc/c-family/c-common.c (revision 252002) +++ gcc/c-family/c-common.c (revision 252003) @@ -6478,10 +6478,9 @@ sync_resolve_size (tree function, vec