Re: Friends cannot be protected or private

2005-09-28 Thread Daniel Jacobowitz
On Mon, Sep 26, 2005 at 11:18:56AM -0500, Adam Majer wrote: Hi all, I'm not on the list so please cc me any replies. I've noticed that friends cannot be protected or private anymore with g++-3.4 and g++-4.0. Is this the correct behaviour? Why? Yes, this is a correctness fix. I'm afraid I

Re: Friends cannot be protected or private

2005-09-28 Thread Adam Majer
Daniel Jacobowitz wrote: On Mon, Sep 26, 2005 at 11:18:56AM -0500, Adam Majer wrote: Hi all, I'm not on the list so please cc me any replies. I've noticed that friends cannot be protected or private anymore with g++-3.4 and g++-4.0. Is this the correct behaviour? Why? Yes

Re: Friends cannot be protected or private

2005-09-28 Thread Daniel Jacobowitz
On Wed, Sep 28, 2005 at 11:58:15AM -0500, Adam Majer wrote: I found one http://gcc.gnu.org/ml/gcc/2005-01/msg01760.html and a link from there to, http://www.open-std.org/JTC1/SC22/WG21/docs/cwg_closed.html#209 I don't understand the reasons for using access control in the friend

Friends cannot be protected or private

2005-09-26 Thread Adam Majer
Hi all, I'm not on the list so please cc me any replies. I've noticed that friends cannot be protected or private anymore with g++-3.4 and g++-4.0. Is this the correct behaviour? Why? [EMAIL PROTECTED]:/tmp$ g++ -c test.cpp test.cpp:4: error: ‘void test1::f1()’ is protected test.cpp:9: error