PR c++/81589 - error with is_trivially_constructible
authorJason Merrill <jason@gcc.gnu.org>
Mon, 26 Feb 2018 17:06:02 +0000 (12:06 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 26 Feb 2018 17:06:02 +0000 (12:06 -0500)
* g++.dg/ext/is_trivially_constructible6.C: New.

From-SVN: r258002

gcc/testsuite/g++.dg/ext/is_trivially_constructible6.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/is_trivially_constructible6.C b/gcc/testsuite/g++.dg/ext/is_trivially_constructible6.C
new file mode 100644 (file)
index 0000000..10a8dfb
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/81589
+
+template <typename k>
+struct z {
+  z() {
+    k::error;
+  }
+};
+
+int x = __is_trivially_constructible(z<int>);