[Bug c++/17585] g++ generates errors on a legal code.
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Wed Sep 22 08:44:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list