| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
// PR libstdc++/110853 |
| 3 |
// Bad interaction between deduction guide with decay and constraints |
| 4 |
// (CTAD, std::pair and function lvalue) |
| 5 |
|
| 6 |
#include <utility> |
| 7 |
|
| 8 |
void func() {} |
| 9 |
std::pair p(1, func); |
| 10 |
std::pair<int, void (*)()>& r = p; |