Commit 6cc92f7d by Kai Tietz Committed by Kai Tietz

re PR c++/64100 (A static assert using the the current class in a noexcept test…

re PR c++/64100 (A static assert using the the current class in a noexcept test leads to a segfault)

	PR c++/64100
	* g++.dg/template/pr64100.C: New file.

From-SVN: r218572
parent e383e095
2014-12-10 Kai Tietz <ktietz@redhat.com>
PR c++/64100
* g++.dg/template/pr64100.C: New file.
2014-12-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/64191
......
// { dg-do compile { target c++11 } }
template<typename> struct foo // { dg-message "note" }
{ // { dg-error "incomplete type" }
static_assert(noexcept(((foo *)1)->~foo()), "");
};
template class foo<int>;
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