PR target/82112
commite69fccfa216ddb0cc736af3c126ec96e9166cfdd
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Sep 2017 11:49:29 +0000 (12 11:49 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Sep 2017 11:49:29 +0000 (12 11:49 +0000)
treef280f7a02ce7a04a489492de1b7806bcb2263c28
parentad0cb9421397c149511be48464997e47fc0d2219
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252003 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr82112.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr82112.c [new file with mode: 0644]