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:
parent
e383e095ce
commit
6cc92f7d80
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
9
gcc/testsuite/g++.dg/template/pr64100.C
Normal file
9
gcc/testsuite/g++.dg/template/pr64100.C
Normal 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>;
|
||||
|
Loading…
Add table
Reference in a new issue