blob: 5077ae343f9754433d446d8cb4d2784c911a57ff [file] [log] [blame]
// 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;
}