[Bug c++/83059] ICE on invalid C++ code: in tree_to_uhwi, at tree.c:6633

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 16:50:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83059

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 16:48:43 2018
New Revision: 262032

URL: https://gcc.gnu.org/viewcvs?rev=262032&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-6-branch/gcc/testsuite/c-c++-common/pr83059.c
Modified:
    branches/gcc-6-branch/gcc/c-family/ChangeLog
    branches/gcc-6-branch/gcc/c-family/c-common.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list