Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / debug / pr84813.C
blobaf23b309cba970b6f846deb33fbdc1de6449e0a5
1 // PR c++/84813
2 // { dg-do compile }
3 // { dg-options "-g -std=c++14" }
5 template <typename>
6 struct P {};
8 template <int>
9 struct F {
10   using type = int;
13 template <typename T>
14 void
15 apply ()
17   constexpr int N = T::N;
18   [] (typename F<N>::type)
19   {
20     auto f = [] () {};
21     P<decltype (f)>{};
22   };
25 struct A {
26   static constexpr int N = 1;
29 void
30 instantiate ()
32   apply<A> ();