This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72799] [C++11] ref-qualifiers are dropped from some function types
- From: "aoliva at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Aug 2016 21:30:52 +0000
- Subject: [Bug c++/72799] [C++11] ref-qualifiers are dropped from some function types
- Auto-submitted: auto-generated
- References: <bug-72799-4@http.gcc.gnu.org/bugzilla/>
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;
^