mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 20:01:31 -05:00
PR c++/67411 * decl2.c (decl_maybe_constant_var_p): A proxy isn't constant. From-SVN: r231862
19 lines
201 B
C
19 lines
201 B
C
// PR c++/67411
|
|
// { dg-do compile { target c++14 } }
|
|
|
|
template <class T>
|
|
void f()
|
|
{
|
|
int i = 42;
|
|
[x = i] {
|
|
[&](auto) {
|
|
[=] { return x; }();
|
|
}(1);
|
|
}();
|
|
}
|
|
|
|
int main()
|
|
{
|
|
f<int>();
|
|
}
|