Debian Codegraph @

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

raw
1 // PR c++/81236
2 // { dg-do compile { target c++14 } }
3
4 struct A { constexpr operator int() { return 24; } };
5
6 struct MyType {
7 void crash() {
8 auto l = [&](auto i){
9 make_crash<i>(); // Line (1)
10 };
11
12 l(A{});
13 }
14
15 template<int i>
16 void make_crash() {}
17 };