This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82112] internal compiler error: in fold_convert_loc, at fold-const.c:2262
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Sep 2017 11:23:28 +0000
- Subject: [Bug target/82112] internal compiler error: in fold_convert_loc, at fold-const.c:2262
- Auto-submitted: auto-generated
- References: <bug-82112-4@http.gcc.gnu.org/bugzilla/>
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 <jakub@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