[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-16 Thread sela_lerer at hotmail dot com
--- Comment #7 from sela_lerer at hotmail dot com 2005-12-16 18:00 --- (In reply to comment #6) > (In reply to comment #5) > > Ok, but what about an inner class? If A had a public inner class B and the > > outer function had to operate on it? > > > The code is still invalid. Just ther

[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-15 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2005-12-15 16:43 --- (In reply to comment #5) > Ok, but what about an inner class? If A had a public inner class B and the > outer function had to operate on it? The code is still invalid. Just there is no simple work around except sp

[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-15 Thread sela_lerer at hotmail dot com
--- Comment #5 from sela_lerer at hotmail dot com 2005-12-15 16:38 --- Ok, but what about an inner class? If A had a public inner class B and the outer function had to operate on it? -- sela_lerer at hotmail dot com changed: What|Removed |Added ---

[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-15 Thread sela_lerer at hotmail dot com
--- Comment #4 from sela_lerer at hotmail dot com 2005-12-15 16:36 --- Ok, but what about an inner class? If A had a public inner class B and the outer function had to operate on it? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25427

[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-15 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2005-12-15 16:23 --- This is invalid code, Comeau gives the following error: "ComeauTest.c", line 12: error: the global scope has no "operator<<" friend std::ostream & :: operator<<(std::ostream &os,A &a);

[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-15 Thread sela_lerer at hotmail dot com
--- Comment #2 from sela_lerer at hotmail dot com 2005-12-15 14:05 --- Created an attachment (id=10495) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10495&action=view) g++ preprocessed file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25427

[Bug c++/25427] Impossible to create a friend function for a class in a namespace, outside the namespace.

2005-12-15 Thread sela_lerer at hotmail dot com
--- Comment #1 from sela_lerer at hotmail dot com 2005-12-15 14:03 --- Created an attachment (id=10494) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10494&action=view) The source file that produced the error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25427