PR c++/66256
* g++.dg/cpp0x/noexcept54.C: New test.
From-SVN: r272588
+2019-06-22 Marek Polacek <polacek@redhat.com>
+
+ PR c++/66256
+ * g++.dg/cpp0x/noexcept54.C: New test.
+
2019-06-22 Jan Hubicka <jh@suse.cz>
* gcc.dg/tree-ssa/alias-access-path-6.c: New testcase.
--- /dev/null
+// PR c++/66256 - noexcept-specifier is a complete-class context.
+// { dg-do compile { target c++11 } }
+
+void swap(int&, int&);
+
+int& get();
+
+struct pair {
+ void swap(pair&) noexcept(noexcept(swap(get(), get()))) { } // { dg-error "no matching function for call" }
+};