This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83059] ICE on invalid C++ code: in tree_to_uhwi, at tree.c:6633
- 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 Dec 2017 21:51:24 +0000
- Subject: [Bug c++/83059] ICE on invalid C++ code: in tree_to_uhwi, at tree.c:6633
- Auto-submitted: auto-generated
- References: <bug-83059-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83059
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 15 21:50:52 2017
New Revision: 255708
URL: https://gcc.gnu.org/viewcvs?rev=255708&root=gcc&view=rev
Log:
Backported from mainline
2017-11-21 Jakub Jelinek <jakub@redhat.com>
PR c++/83059
* c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
instead of tree_to_uhwi, formatting fix.
* c-c++-common/pr83059.c: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/c-c++-common/pr83059.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