c++/9230: Friend definitions in template classes
Gabriel Dos Reis
gdr@integrable-solutions.net
Wed Jan 8 19:16:00 GMT 2003
The following reply was made to PR c++/9230; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
Cc: reichelt@igpm.rwth-aachen.de, <gcc-bugs@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/9230: Friend definitions in template classes
Date: 08 Jan 2003 20:09:28 +0100
Wolfgang Bangerth <bangerth@ticam.utexas.edu> writes:
| > As I read paragraph 14.6.5.1 in the standard, this is the expected behavior:
| >
| > > Friend classes or functions can be declared within a class template. When
| > > a template is instantiated, the names of its friends are treated as if
| > > the specialization had been explicitly declared at its point of instantiation.
|
| That leaves no wishes for clarity unheard.
I disagree: That doesn't say where the declaration appears.
[...]
| Yes :-) I just did not know where to look exactly. Do you want to close
| it or should I do that?
Please, don't close this until we solve this as a non-issue.
-- Gaby
More information about the Gcc-prs
mailing list