This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17585] g++ generates errors on a legal code.


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]