This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What's this?


Robert L Krawitz <rlk@tiac.net> writes:

>    Here's a patch to the egcs FAQ for it to explain how to fix your code.

> The problem is that this doesn't work with a lot of compilers:

The point is that it works with egcs, and that's the egcs FAQ, right?
:-)

>   friend void bar<T>(foo<T>);

>> From a standpoint of clarity and back compatibility, I believe that it
> would be preferable to emphasize that the second form [the only one
> that is quoted] is equally legal

Well, the text states that this form is also valid and sometimes even
required.  If you don't think that's enough feel free to submit a
patch to improve it :-)

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]