This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/59366 A friend function template defined in a class is found without ADL
- From: Jason Merrill <jason at redhat dot com>
- To: Momchil Velikov <momchil dot velikov at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 27 Dec 2014 18:36:16 -0500
- Subject: Re: [PATCH] Fix PR c++/59366 A friend function template defined in a class is found without ADL
- Authentication-results: sourceware.org; auth=none
- References: <536762C0 dot 5040504 at gmail dot com> <549F26E0 dot 3000606 at gmail dot com>
On 12/27/2014 04:38 PM, Momchil Velikov wrote:
+ else if (t != x && t != error_mark_node)
+ {
+ /* This is a non-friend re-declaration of a possibly
+ hidden function or a function template, so don't hide
+ it. */
+ DECL_ANTICIPATED (t) = 0;
+ DECL_HIDDEN_FRIEND_P (t) = 0;
+ }
Doesn't duplicate_decls handle clearing these?
Jason