Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-func2.C

raw
1 // PR c++/108242
2 // { dg-do compile { target c++14 } }
3
4 template<int F>
5 void my_fun()
6 {
7 [&](auto) {
8 static constexpr char const* fun_name = __func__;
9 struct t
10 {
11 t() { fun_name; };
12 } t1;
13 }(12);
14 }
15
16 int main() {
17 my_fun<1>();
18 }