This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: c++/9230: Friend definitions in template classes


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


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