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