1 2 3 4 5 6 7 8 9 10 11 12 13
// PR c++/59296 // { dg-do compile { target c++11 } } struct Type { void get() const& { } void get() const&& { } }; int main() { Type{}.get(); }