[Bug c++/79896] [5/6 Regression] ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 5 21:42:00 GMT 2017


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May  5 21:41:16 2017
New Revision: 247686

URL: https://gcc.gnu.org/viewcvs?rev=247686&root=gcc&view=rev
Log:
        Backported from mainline
        2017-03-10  Jakub Jelinek  <jakub@redhat.com>

        PR c++/79896
        * decl.c (finish_enum_value_list): If value is error_mark_node,
        don't copy it and change its type.
        * init.c (constant_value_1): Return error_mark_node if DECL_INITIAL
        of CONST_DECL is error_mark_node.

        * g++.dg/ext/int128-5.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/int128-5.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/decl.c
    branches/gcc-6-branch/gcc/cp/init.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list