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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 08:15:05 2017
New Revision: 248659

URL: https://gcc.gnu.org/viewcvs?rev=248659&root=gcc&view=rev
Log:
        Backported from mainline
        2017-03-10  Jakub Jelinek  <ja...@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.

Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/decl.c
    branches/gcc-5-branch/gcc/cp/init.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Reply via email to