blob: ebc44b435890b88e3acda9b960a95e313a3b95f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// PR c++/81888
// { dg-do compile { target c++17 } }
struct S {
bool s = true;
};
auto [a] = S{};
template <class T>
bool
foo () noexcept
{
auto [c] = T{};
return c;
}
const bool b = foo<S> ();
|