This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52597] [C++11] missing diagnostics for invalid use of non-static member function in decltype
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Mar 2012 08:59:29 +0000
- Subject: [Bug c++/52597] [C++11] missing diagnostics for invalid use of non-static member function in decltype
- Auto-submitted: auto-generated
- References: <bug-52597-4@http.gcc.gnu.org/bugzilla/>
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