re PR c++/79896 (ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target)
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Mar 2017 15:28:26 +0000 (16:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Mar 2017 15:28:26 +0000 (16:28 +0100)
commitcdd669f9fc6532b8f063e4e80ab0db6f78f95de9
treefa7e54d820d0adfc8fd6251e2d35c5a321b4afd9
parent730e6e46344099be5deba0811e17d96c1179a2f5
re PR c++/79896 (ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target)

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.

From-SVN: r246034
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/int128-5.C [new file with mode: 0644]