From 67cf0a5391dbd2ef1906899c702a19e8f1b50c3a Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 22 Sep 2016 17:11:33 +0000 Subject: [PATCH] re PR c++/61019 (ICE: incomplete type of class template as pseudo-destructor-name) 2016-09-22 Paolo Carlini PR c++/61019 * g++.dg/cpp0x/pr61019.C: New. From-SVN: r240380 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr61019.C | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr61019.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 37e220db058..da6be3ca7c8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-09-22 Paolo Carlini + + PR c++/61019 + * g++.dg/cpp0x/pr61019.C: New. + 2016-09-22 Andre Vieira Terry Guo diff --git a/gcc/testsuite/g++.dg/cpp0x/pr61019.C b/gcc/testsuite/g++.dg/cpp0x/pr61019.C new file mode 100644 index 00000000000..e0d87f42e8e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr61019.C @@ -0,0 +1,10 @@ +// PR c++/61019 +// { dg-do compile { target c++11 } } + +template +struct S +{ + static_assert(((S*)0)->~S(), ""); // { dg-error "incomplete type" } +}; + +S b; -- 2.30.2