Commit 5dd44f4e by Ville Voutilainen Committed by Ville Voutilainen

re PR libstdc++/68430 (std::is_constructible<T>::value == true for unconstructible type T)

PR libstdc++/68430

* testsuite/20_util/is_constructible/68430.cc: New.

From-SVN: r255785
parent 59024129
2017-12-18 Ville Voutilainen <ville.voutilainen@gmail.com>
PR libstdc++/68430
* testsuite/20_util/is_constructible/68430.cc: New.
2017-12-16 Martin Sebor <msebor@redhat.com>
PR tree-optimization/83239
......
// { dg-do compile { target c++11 } }
#include <type_traits>
template<class T> struct Foo { Foo(T = nullptr) {} };
static_assert(!std::is_constructible<Foo<int>>::value, "");
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