On May 1, 2011, at 4:48 PM, Chandler Carruth wrote:
> @@ -327,29 +333,38 @@
>                                  const DeclarationNameInfo &NameInfo,
>                                  QualType T,
>                                  ExprValueKind VK,
> +                                 NamedDecl *FoundD,
>                                  const TemplateArgumentListInfo 
> *TemplateArgs) {
> +  // Filter out cases where the found Decl is the same as the value 
> refenenced.
> +  if (D == FoundD)
> +    FoundD = 0;
> +

I would be happier if we also filtered out cases where the found
Decl can be trivially reconstructed from the value referenced, as with
a function template specialization.

John.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to