From 6cc92f7d80b696290da0df8625c49c60353debf9 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 10 Dec 2014 12:26:47 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/pr64100.C | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/pr64100.C 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; + -- 2.30.2