This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49701] Parser confusion between operator< and template specialization
- 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: Mon, 11 Jul 2011 11:20:03 +0000
- Subject: [Bug c++/49701] Parser confusion between operator< and template specialization
- Auto-submitted: auto-generated
- References: <bug-49701-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49701
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-11 11:19:44 UTC ---
The code is invalid, you need to say:
c() { f<c>().template bind<&c::m>(this); }
See http://womble.decadent.org.uk/c++/template-faq.html#disambiguation