This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17585] g++ generates errors on a legal code.
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2004 08:43:58 -0000
- Subject: [Bug c++/17585] g++ generates errors on a legal code.
- References: <20040921144843.17585.tal.agmon@nsc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-09-22 08:43 -------
I won't confirm it right now, but Tal is right: the standard my not appear
clear but the syntax &A::f is used to form pointers to members: a pointer to a
static member function is not a pointer to member, it is a regulard pointer to
function. [conv.func]/1 (footnote 50) says that "&f" is forbidden for non-
static member function, and it implies that "f" is a regular lvalue for a
static member function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17585