PR c++/70494 * decl.c (cxx_maybe_build_cleanup): Handle non-decls. * typeck2.c (split_nonconstant_init_1): Use it. From-SVN: r235003
11 lines
138 B
C
11 lines
138 B
C
// PR c++/70494
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
struct A { ~A(); };
|
|
|
|
int main()
|
|
{
|
|
A v[] = { A(), A() };
|
|
auto lambda = [v]{};
|
|
}
|