Commit 65dbe239 by Paolo Carlini Committed by Paolo Carlini

re PR c++/48735 ([C++0x][SFINAE] Hard errors with array list-construction and…

re PR c++/48735 ([C++0x][SFINAE] Hard errors with array list-construction and deleted default c'tor)

2011-05-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/48735
	* g++.dg/cpp0x/sfinae21.C: New.

2011-05-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/template/sfinae28.C: Rename to...
	* g++.dg/cpp0x/sfinae19.C: ... this.
	* g++.dg/template/sfinae29.C: Rename to...
	* g++.dg/cpp0x/sfinae20.C: ... this.

From-SVN: r173597
parent aec288a2
2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48735
* g++.dg/cpp0x/sfinae21.C: New.
2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/template/sfinae28.C: Rename to...
* g++.dg/cpp0x/sfinae19.C: ... this.
* g++.dg/template/sfinae29.C: Rename to...
* g++.dg/cpp0x/sfinae20.C: ... this.
2011-05-09 Jeff Law <law@redhat.com>
* lib/gcc-gdb-test.exp (gdb-test): Reorder matchers to give more
......
// PR c++/48735
// { dg-options "-std=c++0x" }
template<class T,
class = decltype(T{})
>
char f(int);
template<class>
char (&f(...))[2];
struct ND { ND() = delete; };
static_assert(sizeof(f<ND[1]>(0)) != 1, "Error");
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