| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
// PR libstdc++/100894 - common_reference implementation seems to be wrong |
| 3 |
|
| 4 |
#include <type_traits> |
| 5 |
|
| 6 |
struct A {}; |
| 7 |
struct B { B(A); }; |
| 8 |
static_assert( std::is_same_v<std::common_reference_t<A&, B&&>, B> ); |