Commit 67cf0a53 by Paolo Carlini Committed by Paolo Carlini

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
parent 0ee70cc0
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>
......
// 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment