[Bug c++/86063] [6/7/8/9 Regression] g++ ICE at tree check: expected tree_list, have expr_pack_expansion in cp_check_const_attributes, at cp/decl2.c:1391

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 14 21:07:00 GMT 2018


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Jun 14 21:07:14 2018
New Revision: 261613

URL: https://gcc.gnu.org/viewcvs?rev=261613&root=gcc&view=rev
Log:
        PR c++/86063
        * decl2.c (cp_check_const_attributes): Skip trees that are not
        TREE_LISTs.

        * g++.dg/cpp0x/gen-attrs-65.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-65.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list