https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72799
--- Comment #1 from Alexandre Oliva <aoliva at gcc dot gnu.org> --- Uhh, sorry, I pasted the error messages from a compiler with changes that attempted to fix the problem. Here's what gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) reports: /l/tmp/build/gcc/trunk/gcc/testsuite/g++.dg/other/refqual-1.C:15:12: error: prototype for ‘void (S::* S::mfpmf() &&)() const &’ does not match any in class ‘S’ void (S::* S::mfpmf(void) &&)(void) const & { return &S::mf; } // ... here... ^ /l/tmp/build/gcc/trunk/gcc/testsuite/g++.dg/other/refqual-1.C:10:12: error: candidate is: void (S::* S::mfpmf() &&)() const rqft S::*mfpmf(void) &&; ^ /l/tmp/build/gcc/trunk/gcc/testsuite/g++.dg/other/refqual-1.C:23:18: error: cannot convert ‘void (S::*)() const &’ to ‘pmft2 {aka void (S::*)() const}’ in initialization pmft2 pmf2 = &S::mf; ^