blob: cba0370f129b4652a2972c64fbc5166cb29e80b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/66387
// { dg-do compile { target c++11 } }
template <typename T>
void
bar (T x)
{
x ();
}
void
foo ()
{
constexpr int a[1] = { 1 };
bar ([&]{ return a[0]; });
}
|