Commit f88ce95e by Paolo Carlini Committed by Paolo Carlini

re PR c++/52440 ([C++11] Wrong template argument deduction/substitution failures)

2013-06-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52440
	* g++.dg/cpp0x/pr52440.C: New.

From-SVN: r199899
parent df8a1d28
2013-06-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52440
* g++.dg/cpp0x/pr52440.C: New.
2013-06-10 Jakub Jelinek <jakub@redhat.com>
PR target/56564
......
// PR c++/52440
// { dg-do compile { target c++11 } }
template<bool>
struct V
{
typedef void type;
};
template<typename T>
struct X
{
template<typename>
static constexpr bool always_true()
{
return true;
}
template<typename U,
typename = typename V<always_true<U>()>::type>
X(U &&) {}
};
int main()
{
X<int> x(42);
}
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