Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/typename13.C

raw
1 // P0634R3, PR c++/88358
2 // { dg-do compile { target c++20 } }
3
4 template <typename T>
5 int pi(T::your_pi);
6
7 struct Foo { static constexpr int your_pi = 10; };
8
9 int
10 main ()
11 {
12 return pi<Foo>;
13 }