PR c++/84813
* g++.dg/debug/pr84813.C: New test.
From-SVN: r258445
+2018-03-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/84813
+ * g++.dg/debug/pr84813.C: New test.
+
2018-03-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/84546
- * gfortran.dg/unlimited_polymorphic_29.f90 : New test.
+ * gfortran.dg/unlimited_polymorphic_29.f90: New test.
2018-03-11 Steven G. Kargl <kargl@gcc.gnu.org>
--- /dev/null
+// PR c++/84813
+// { dg-do compile }
+// { dg-options "-g -std=c++14" }
+
+template <typename>
+struct P {};
+
+template <int>
+struct F {
+ using type = int;
+};
+
+template <typename T>
+void
+apply ()
+{
+ constexpr int N = T::N;
+ [] (typename F<N>::type)
+ {
+ auto f = [] () {};
+ P<decltype (f)>{};
+ };
+}
+
+struct A {
+ static constexpr int N = 1;
+};
+
+void
+instantiate ()
+{
+ apply<A> ();
+}