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
This commit is contained in:
Kai Tietz 2014-12-10 12:26:47 +01:00 committed by Kai Tietz
parent e383e095ce
commit 6cc92f7d80
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -0,0 +1,9 @@
// { 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>;