[Bug c++/52453] compiling error when get address of a virtual function(invalid use of non-static member function)

2012-03-01 Thread wildpointercs at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52453 --- Comment #2 from Allen Wu 2012-03-01 16:40:07 UTC --- Thank you for your response. But I cannot see any difference between &Test::func and &(Test::func). Does C++ standard specify &(Test::func) is illegal? Thanks in advance. Allen 2012/3/2 re

[Bug c++/52453] New: compiling error when get address of a virtual function(invalid use of non-static member function)

2012-03-01 Thread wildpointercs at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52453 Bug #: 52453 Summary: compiling error when get address of a virtual function(invalid use of non-static member function) Classification: Unclassified Product: gcc Version: 4.2.4