Commit ec121f15 by Marek Polacek Committed by Marek Polacek

re PR c++/66256 (noexcept evaluation done before end of class)

	PR c++/66256
	* g++.dg/cpp0x/noexcept54.C: New test.

From-SVN: r272588
parent 1240df7b
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.
......
// 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" }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment