re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c...
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Sep 2017 11:49:29 +0000 (13:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Sep 2017 11:49:29 +0000 (13:49 +0200)
commitec33aebb1cd640f0751614ccd1b759d0f41ffb2f
treef280f7a02ce7a04a489492de1b7806bcb2263c28
parentdee6fc2b43d2fc004ffe65a0e030fc74facb7c64
re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

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.

From-SVN: r252003
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]