1 // PR c++/69139 2 // { dg-do compile { target c++11 } } 3 4 struct X { 5 auto get(int) const & noexcept -> int { return {}; } 6 auto get(int) && throw () -> long { return {}; } 7 }; 8 9 template <class R> auto f(auto (X::*)(int) const & -> R) -> R {} 10 11 using I = decltype(f(&X::get)); 12 using I = int; 13