Tested x86_64-pc-linux-gnu, applying to trunk.

-- >8 --
We were rejecting this, but the test compiles correctly since r14-6346.

        PR c++/96364

gcc/testsuite/ChangeLog:

        * g++.dg/cpp0x/gen-attrs-88.C: New test.
---
 gcc/testsuite/g++.dg/cpp0x/gen-attrs-88.C | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/cpp0x/gen-attrs-88.C

diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-88.C 
b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-88.C
new file mode 100644
index 00000000000..f90b7a4661d
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-88.C
@@ -0,0 +1,14 @@
+// PR c++/96364
+// { dg-do compile { target c++14 } }
+
+auto a[[]] [[]]();
+auto a() {}
+
+void v[[]] [[]]();
+void v() {}
+
+void g()
+{
+  v();
+  return a();
+}

base-commit: dfd0ced98fcf62c4d24979b74c1d52334ff62bfc
-- 
2.48.1

Reply via email to