| 1 |
// PR c++/109790 |
| 2 |
// Up to GCC 10, the mangling would be missing the "on" marker, hence be wrong. |
| 3 |
// Check that this is fixed with the latest ABI. |
| 4 |
|
| 5 |
// { dg-do compile { target c++14 } } |
| 6 |
|
| 7 |
auto ll = [](auto ... ){}; |
| 8 |
template <class _Impl, class _Args> |
| 9 |
void mm(void (_Impl::*__p)(_Args) const); |
| 10 |
template <class _Ts> |
| 11 |
using __impl_for = decltype(mm(&decltype(ll)::operator()<_Ts>)); |
| 12 |
template <class _Ts> __impl_for<_Ts> f() { } |
| 13 |
void aaa() { |
| 14 |
f<int>(); |
| 15 |
} |
| 16 |
|
| 17 |
// { dg-final { scan-assembler "_Z1fIiEDTcl2mmadsrN2llMUlDpT_E_EonclIT_EEEv" } } |