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?