diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2016-09-22 17:11:33 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2016-09-22 17:11:33 +0000 |
commit | 67cf0a5391dbd2ef1906899c702a19e8f1b50c3a (patch) | |
tree | 27dee8e4d9821135c8c3ae9dcf1340ada72815b3 | |
parent | 0ee70cc0000fe25484cb0d3b2ac2904d2007e5cf (diff) | |
download | gcc-67cf0a5391dbd2ef1906899c702a19e8f1b50c3a.zip gcc-67cf0a5391dbd2ef1906899c702a19e8f1b50c3a.tar.gz gcc-67cf0a5391dbd2ef1906899c702a19e8f1b50c3a.tar.bz2 |
re PR c++/61019 (ICE: incomplete type of class template as pseudo-destructor-name)
2016-09-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61019
* g++.dg/cpp0x/pr61019.C: New.
From-SVN: r240380
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr61019.C | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 37e220d..da6be3c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-09-22 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/61019 + * g++.dg/cpp0x/pr61019.C: New. + 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com> Terry Guo <terry.guo@arm.com> diff --git a/gcc/testsuite/g++.dg/cpp0x/pr61019.C b/gcc/testsuite/g++.dg/cpp0x/pr61019.C new file mode 100644 index 0000000..e0d87f4 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr61019.C @@ -0,0 +1,10 @@ +// PR c++/61019 +// { dg-do compile { target c++11 } } + +template<class> +struct S +{ + static_assert(((S*)0)->~S(), ""); // { dg-error "incomplete type" } +}; + +S<int> b; |