aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2018-06-14 21:07:14 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2018-06-14 21:07:14 +0000
commitcf4763bd7283cf8dbfabbf5e9bd929b67a4e5186 (patch)
tree20c5fbe51b4b21d76387f8376dc6c64bbad5e4d7 /gcc/testsuite
parent53e926c8cd54a9f1b5817c8e4b50c87aacce432b (diff)
downloadgcc-cf4763bd7283cf8dbfabbf5e9bd929b67a4e5186.zip
gcc-cf4763bd7283cf8dbfabbf5e9bd929b67a4e5186.tar.gz
gcc-cf4763bd7283cf8dbfabbf5e9bd929b67a4e5186.tar.bz2
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/gen-attrs-65.C7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f060c6e..94c4fca 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-14 Marek Polacek <polacek@redhat.com>
+
+ PR c++/86063
+ * g++.dg/cpp0x/gen-attrs-65.C: New test.
+
2018-06-14 Jakub Jelinek <jakub@redhat.com>
PR target/86048
diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-65.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-65.C
new file mode 100644
index 0000000..1d2b2f0
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-65.C
@@ -0,0 +1,7 @@
+// PR c++/86063
+// { dg-do compile { target c++11 } }
+
+template <class... T>
+struct S {
+ [[foobar(alignof(T))...]] char t; // { dg-warning "attribute directive ignored" }
+};