This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45942] class will not get friends with another class
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 8 Oct 2010 15:36:11 +0000
- Subject: [Bug c++/45942] class will not get friends with another class
- Auto-submitted: auto-generated
- References: <bug-45942-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45942
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 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 sentence to use a proper plural here (the same error
> > happens with the Intel, EDG, Comeau, SunStudio and Microsoft compilers, for
> > sure) I would suggest considering a little longer the first person singular.
>
> Does C++ accept dependencies between template parameters. G++ does that within
> my project. And all I am asking is to make ClassB a friend of ClassA before
> clicking "Resolved Invalid".
You seem to misunderstand what this bugzilla is for. You reported a bug, but
it was invalid, so it doesn't belong in this bugzilla. Whether you know a
workaround or not is irrelevant. You have not found a bug in the compiler.
Figuring out what's wrong with your code and fixing it is your job, not GCC's.
"Resolved - Invalid" means it's not a valid bug report, it doesn't mean "We
have analysed the user's code and shown how to fix it"
> I am using G++ and do not see a reason why another
> compiler should be able to make ClassB a friend of ClassA.
Other compilers don't accept your code either, because it's wrong.
However, I have given you a workaround that makes classB a friend of classA, so
you should be happy now, right?