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: Tue, 12 Sep 2017 11:50:00 +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 #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Sep 12 11:49:29 2017
New Revision: 252003
URL: https://gcc.gnu.org/viewcvs?rev=252003&root=gcc&view=rev
Log:
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:
trunk/gcc/testsuite/c-c++-common/pr82112.c
trunk/gcc/testsuite/gcc.dg/pr82112.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog