From fb07bf88002443cef957d2268949f3e138c07243 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 3 Feb 2017 18:19:46 -0500 Subject: [PATCH] re PR c++/78334 ([C++1z] P0127R2 related ICE: Segmentation fault) PR c++/78334 * g++.dg/cpp1z/nontype-auto7.C: New. From-SVN: r245174 --- gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C diff --git a/gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C b/gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C new file mode 100644 index 00000000000..15656cfd24d --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C @@ -0,0 +1,5 @@ +// PR c++/78334 +// { dg-options -std=c++1z } + +template auto constexpr_string([](auto) {}); +void foo() { constexpr_string<0>(0); }; -- 2.30.2