[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / cast5.C
blob4e48d1d3c5c446b450882d76e5fb3678cef42f77
1 // PR c++/82360
2 // { dg-do compile { target c++11 } }
4 class a {};
5 template <class> class b {
6   b(b &&c) : d(static_cast<a &&>(c.d)) {}
7   a d;
8 };