re PR c++/86063 (g++ ICE at tree check: expected tree_list, have expr_pack_expansion...
authorMarek Polacek <polacek@redhat.com>
Thu, 14 Jun 2018 21:07:14 +0000 (21:07 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 14 Jun 2018 21:07:14 +0000 (21:07 +0000)
commitcf4763bd7283cf8dbfabbf5e9bd929b67a4e5186
tree20c5fbe51b4b21d76387f8376dc6c64bbad5e4d7
parent53e926c8cd54a9f1b5817c8e4b50c87aacce432b
re PR c++/86063 (g++ ICE at  tree check: expected tree_list, have expr_pack_expansion in cp_check_const_attributes, at cp/decl2.c:1391)

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.

From-SVN: r261613
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/gen-attrs-65.C [new file with mode: 0644]