From d21f2166b03cfda6b689398f7839520d66123708 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 4 Oct 2017 13:47:51 -0400 Subject: [PATCH] PR c++/82406 - C++17 error with noexcept function type * g++.dg/ext/attrib54.C: New. From-SVN: r253425 --- gcc/testsuite/g++.dg/ext/attrib54.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/ext/attrib54.C diff --git a/gcc/testsuite/g++.dg/ext/attrib54.C b/gcc/testsuite/g++.dg/ext/attrib54.C new file mode 100644 index 00000000000..5ff28c836ef --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/attrib54.C @@ -0,0 +1,14 @@ +// PR c++/82406 + +class a +{ +public: + template void operator() (const b &); +}; +void c () throw () __attribute__ ((__nonnull__)); +void +d () +{ + a e; + e (c); +} -- 2.30.2