tree-optimization/116481 - avoid building function_type[]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-this1.C
blob52d25af9c5a1cbb04cf1a364ceca9fdb30126d6a
1 // PR c++/81236
2 // { dg-do compile { target c++14 } }
4 struct A { constexpr operator int() { return 24; } };
6 struct MyType {
7   void crash() {
8     auto l = [&](auto i){
9       make_crash<i>(); // Line (1)
10     };
12     l(A{});
13   }
14     
15   template<int i>
16   void make_crash() {}