[Bug c++/17122] Unable to compile friend operator within template

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 12 12:44:00 GMT 2012


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

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-12 12:44:13 UTC ---
Are any of the examples in this PR actually valid?

I think G++ is correct to reject them.

foo ::operator+ is parsed the same as foo::operator+ so still finds the member
function, the parentheses prevent that.



More information about the Gcc-bugs mailing list