[Bug c++/45942] class will not get friends with another class

2010-10-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #15 from Jonathan Wakely 2010-10-09 18:18:56 UTC --- you don't even need the partial specialization of Befriender: template class A; template&> class A; template struct Befriender { typedef B&> type; }; template class A { frien

[Bug c++/45942] class will not get friends with another class

2010-10-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #14 from Jonathan Wakely 2010-10-09 18:07:42 UTC --- (In reply to comment #13) > The reason that I did not succeed in making ClassB a friend of ClassA is that > C++ is not very logical. Maybe so, but that's not a bug in GCC. The nex

[Bug c++/45942] class will not get friends with another class

2010-10-09 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #13 from Michiel 2010-10-09 13:38:05 UTC --- The reason that I did not succeed in making ClassB a friend of ClassA is that C++ is not very logical. See below. template class classB; template class classC; template class classA {

[Bug c++/45942] class will not get friends with another class

2010-10-09 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #12 from Michiel 2010-10-09 13:02:51 UTC --- > You seem to misunderstand what this bugzilla is for. No, that is not true, although the effect has been equally terrible. Indeed, you only need to say that my bug is invalid. However,

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #11 from Michiel 2010-10-08 16:09:33 UTC --- C++ is designed to give an error message which is syntactically correct, but semantically incorrect. I thought that the template prechecker (preprocessor or whatever, do not correct me thi

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #10 from Jonathan Wakely 2010-10-08 15:59:08 UTC --- (In reply to comment #9) > > I really tried everything, but I have to admit I missed that one. Sorry. But > you have to admit that it is a rather unnatural way to make friends. >

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #9 from Michiel 2010-10-08 15:43:13 UTC --- (In reply to comment #6) > (In reply to comment #4) > > (In reply to comment #2) > > > This code is not valid, G++ is correct to reject it. > > > > Please explain why the code is invalid, a

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #8 from Jonathan Wakely 2010-10-08 15:36:01 UTC --- (In reply to comment #7) > (In reply to comment #5) > > (In reply to comment #3) > > > Apparently you are making the same mistake as the compiler. > > > > Before adjusting the sente

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #7 from Michiel 2010-10-08 15:12:36 UTC --- (In reply to comment #5) > (In reply to comment #3) > > Apparently you are making the same mistake as the compiler. > > Before adjusting the sentence to use a proper plural here (the same e

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #6 from Jonathan Wakely 2010-10-08 15:08:36 UTC --- (In reply to comment #4) > (In reply to comment #2) > > This code is not valid, G++ is correct to reject it. > > Please explain why the code is invalid, and do not click "Resolved i

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 Michiel changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread MichieldeB at aim dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #3 from Michiel 2010-10-08 14:51:36 UTC --- (In reply to comment #1) > It's not entirely clear what you're saying is a bug, because your testcase > doesn't give any error. > > It's more helpful to provide the source code that you cla

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/45942] class will not get friends with another class

2010-10-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942 --- Comment #1 from Jonathan Wakely 2010-10-08 14:41:28 UTC --- It's not entirely clear what you're saying is a bug, because your testcase doesn't give any error. It's more helpful to provide the source code that you claim produces the bug. I a