From: Kai Tietz Date: Wed, 10 Dec 2014 11:26:47 +0000 (+0100) Subject: re PR c++/64100 (A static assert using the the current class in a noexcept test leads... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cc92f7d80b696290da0df8625c49c60353debf9;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8d18ec974e0..615bfa7e347 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-10 Kai Tietz + + PR c++/64100 + * g++.dg/template/pr64100.C: New file. + 2014-12-10 Richard Biener PR tree-optimization/64191 diff --git a/gcc/testsuite/g++.dg/template/pr64100.C b/gcc/testsuite/g++.dg/template/pr64100.C new file mode 100644 index 00000000000..493849f24cf --- /dev/null +++ b/gcc/testsuite/g++.dg/template/pr64100.C @@ -0,0 +1,9 @@ +// { dg-do compile { target c++11 } } + +template struct foo // { dg-message "note" } +{ // { dg-error "incomplete type" } + static_assert(noexcept(((foo *)1)->~foo()), ""); +}; + +template class foo; +