aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@gmail.com>2017-12-18 20:46:30 +0200
committerVille Voutilainen <ville@gcc.gnu.org>2017-12-18 20:46:30 +0200
commit5dd44f4ea5924ad31f7e70b6afba353032b8387d (patch)
treee82b7a37178b852cb05d1c7c5e530c2463b060e9 /libstdc++-v3
parent590241291d8a4d70eb9f68d0e66d09c976522ef3 (diff)
downloadgcc-5dd44f4ea5924ad31f7e70b6afba353032b8387d.zip
gcc-5dd44f4ea5924ad31f7e70b6afba353032b8387d.tar.gz
gcc-5dd44f4ea5924ad31f7e70b6afba353032b8387d.tar.bz2
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/20_util/is_constructible/68430.cc6
2 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1275ea5..08096d1 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+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
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 0000000..3f880b3
--- /dev/null
+++ b/libstdc++-v3/testsuite/20_util/is_constructible/68430.cc
@@ -0,0 +1,6 @@
+// { 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, "");