This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: What's this?
- To: Robert L Krawitz <rlk at tiac dot net>
- Subject: Re: What's this?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 21 Sep 1998 03:58:05 +-300
- Cc: egcs-patches at cygnus dot com, law at cygnus dot com, egcs-bugs at cygnus dot com, smr at torrent dot com, jcallen at torrent dot com, rlk at rlk-ppp-1 dot torrent dot com
- References: <199809201534.LAA10532@rlk-ppp-1.torrent.com>
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