PR c++/82406 - C++17 error with noexcept function type
authorJason Merrill <jason@gcc.gnu.org>
Wed, 4 Oct 2017 17:47:51 +0000 (13:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 4 Oct 2017 17:47:51 +0000 (13:47 -0400)
* g++.dg/ext/attrib54.C: New.

From-SVN: r253425

gcc/testsuite/g++.dg/ext/attrib54.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/attrib54.C b/gcc/testsuite/g++.dg/ext/attrib54.C
new file mode 100644 (file)
index 0000000..5ff28c8
--- /dev/null
@@ -0,0 +1,14 @@
+// PR c++/82406
+
+class a
+{
+public:
+  template <typename b> void operator() (const b &);
+};
+void c () throw () __attribute__ ((__nonnull__));
+void
+d ()
+{
+  a e;
+  e (c);
+}