From: Jason Merrill Date: Wed, 4 Oct 2017 17:47:51 +0000 (-0400) Subject: PR c++/82406 - C++17 error with noexcept function type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d21f2166b03cfda6b689398f7839520d66123708;p=gcc.git PR c++/82406 - C++17 error with noexcept function type * g++.dg/ext/attrib54.C: New. From-SVN: r253425 --- 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); +}