summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>2017-06-01 11:09:41 +0000
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>2017-06-01 11:09:41 +0000
commit348a4dd2d4f82cb293da4f839da343c34188be39 (patch)
treed0b29da84cf2665ab1bb708eb2416279fe33f6bd /libstdc++-v3
parent8c3a6139f87e65f8ef83402b54624dbe4202c61b (diff)
downloadgcc-348a4dd2d4f82cb293da4f839da343c34188be39.tar.gz
PR c++/80812
cp/ PR c++/80812 * method.c (constructible_expr): Strip array types before calling build_value_init. libstdc++/ PR c++/80812 * testsuite/20_util/is_constructible/80812.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248788 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/testsuite/20_util/is_constructible/80812.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/20_util/is_constructible/80812.cc b/libstdc++-v3/testsuite/20_util/is_constructible/80812.cc
new file mode 100644
index 00000000000..17af9aeb61f
--- /dev/null
+++ b/libstdc++-v3/testsuite/20_util/is_constructible/80812.cc
@@ -0,0 +1,29 @@
+// { dg-do compile { target c++11 } }
+// Copyright (C) 2017 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3. If not see
+// <http://www.gnu.org/licenses/>.
+
+#include <type_traits>
+
+struct X
+{
+ X() {}
+};
+
+void test01()
+{
+ static_assert(std::is_constructible<X[4]>::value);
+}