re PR c++/78334 ([C++1z] P0127R2 related ICE: Segmentation fault)
authorJason Merrill <jason@gcc.gnu.org>
Fri, 3 Feb 2017 23:19:46 +0000 (18:19 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 3 Feb 2017 23:19:46 +0000 (18:19 -0500)
PR c++/78334

* g++.dg/cpp1z/nontype-auto7.C: New.

From-SVN: r245174

gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C b/gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C
new file mode 100644 (file)
index 0000000..15656cf
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/78334
+// { dg-options -std=c++1z }
+
+template <auto> auto constexpr_string([](auto) {});
+void foo() { constexpr_string<0>(0); };