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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-16 
08:59:29 UTC ---
With 4.7.0 you get

t.cc:4:16: error: decltype cannot resolve address of overloaded function
t.cc: In member function ‘void A::bar1()’:
t.cc:6:49: error: decltype cannot resolve address of overloaded function
t.cc:6:52: error: invalid type in declaration before ‘;’ token
t.cc: In member function ‘void A::bar2()’:
t.cc:9:43: error: decltype cannot resolve address of overloaded function
t.cc:9:46: error: invalid type in declaration before ‘;’ token
t.cc: At global scope:
t.cc:14:25: error: decltype cannot resolve address of overloaded function
t.cc:14:28: error: invalid type in declaration before ‘;’ token

Reply via email to