[Bug c++/17459] Spurious message when forgetting parentheses on call of member

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Mon Sep 13 17:33:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-09-13 17:33 -------
Notice that you need "&S::foo" to take the address of a member function. The 
syntax "foo(blah)" is the function call syntax, and it is available only for 
function calls.

I am not sure why EDG accepts it. Anyway, our diagnostic is suboptimal.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17459



More information about the Gcc-bugs mailing list