[Bug c++/49701] Parser confusion between operator< and template specialization
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 11 11:20:00 GMT 2011
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
More information about the Gcc-bugs
mailing list