1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
// PR c++/55149 // { dg-do compile { target c++1y } } template<unsigned int TA> struct SA { SA (const int & PA); int nt; }; template<typename TB> inline void test(TB aa) { ; } template<unsigned int TA> inline SA<TA>::SA(const int & PA) { float e[nt]; test([&e](int i, int j){ return e[i] < e[j]; }); } int main() { int d; SA<2> iso(d); return 0; }