From: Paolo Carlini Date: Thu, 22 Sep 2016 17:11:33 +0000 (+0000) Subject: re PR c++/61019 (ICE: incomplete type of class template as pseudo-destructor-name) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67cf0a5391dbd2ef1906899c702a19e8f1b50c3a;p=gcc.git 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 --- 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;