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]
Other format: [Raw text]

Re: [PATCH] Fix PR c++/59366 A friend function template defined in a class is found without ADL


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


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