From 5dd44f4ea5924ad31f7e70b6afba353032b8387d Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Mon, 18 Dec 2017 20:46:30 +0200 Subject: [PATCH] re PR libstdc++/68430 (std::is_constructible::value == true for unconstructible type T) PR libstdc++/68430 * testsuite/20_util/is_constructible/68430.cc: New. From-SVN: r255785 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/20_util/is_constructible/68430.cc | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 libstdc++-v3/testsuite/20_util/is_constructible/68430.cc diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1275ea5e85f..08096d10e7c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-12-18 Ville Voutilainen + + PR libstdc++/68430 + * testsuite/20_util/is_constructible/68430.cc: New. + 2017-12-16 Martin Sebor PR tree-optimization/83239 diff --git a/libstdc++-v3/testsuite/20_util/is_constructible/68430.cc b/libstdc++-v3/testsuite/20_util/is_constructible/68430.cc new file mode 100644 index 00000000000..3f880b397cf --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/is_constructible/68430.cc @@ -0,0 +1,6 @@ +// { dg-do compile { target c++11 } } + +#include + +template struct Foo { Foo(T = nullptr) {} }; +static_assert(!std::is_constructible>::value, ""); -- 2.30.2