blob: 0a88bc8752b602dc72188ccf74479c3efe23c90a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// PR c++/53741
// { dg-do compile { target c++11 } }
struct X
{
template <class T> static void bar() {}
template <class T> void foo(T p)
{
[&] { bar<T>(); };
}
};
int main()
{
X x;
x.foo(3);
}
|