[Bug c++/17449] Cannot shut warning off

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Mon Sep 13 07:25:00 GMT 2004


------- Additional Comments From igodard at pacbell dot net  2004-09-13 07:25 -------
Yes, it says how to declare a template function here. But when I *do* want to declare a non-template function here then I can't shut the warning off.

Or am I completely misunderstanding the warning? The goal here is to have only one particular instantiation of the function be the friend of any particular instantiation of the class, not *all* instantiations of the function being friends of *every* instantiation of the class, as declaring a template function as friend would do. I think :-)

BTW Comeau is happy, neither warning nor error.

Ivan

-- 


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



More information about the Gcc-bugs mailing list