[Bug c++/17122] Unable to compile friend operator within template
ron at vaniwaarden dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 23 18:30:00 GMT 2004
------- Additional Comments From ron at vaniwaarden dot org 2004-08-23 18:30 -------
(In reply to comment #2)
> Note that this works though:
> friend void ::operator+<>(int, foo);
>
> I think this is correct as Comeau C++ also rejects the code and accepts the above.
Here is some additional information from the C++ standards committee:
http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#166
>From my point of view, I would consider this resolved.
--Ron
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
More information about the Gcc-bugs
mailing list