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++/52597] [C++11] missing diagnostics for invalid use of non-static member function in decltype


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


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