aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr84606.C10
2 files changed, 16 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index cb5c2c3..c5ee018 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,9 @@
-2018-03-20 Carl Love <cel@us.ibm.com>
+2018-03-29 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84606
+ * g++.dg/cpp0x/pr84606.C: New.
+
+2018-03-29 Carl Love <cel@us.ibm.com>
Revert
2017-09-27 Carl Love <cel@us.ibm.com>
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr84606.C b/gcc/testsuite/g++.dg/cpp0x/pr84606.C
new file mode 100644
index 0000000..60d4af5
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr84606.C
@@ -0,0 +1,10 @@
+// { dg-do compile { target c++11 } }
+
+template<typename>
+struct s {
+ struct {
+ void __attribute__((common([] { struct d }))) g(); // { dg-error "expected|attribute" }
+ } f;
+};
+
+s<int> a {};