[patch][pr17624] Consider hidden decls for isUsed checks

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Oct 22 12:41:43 PDT 2013


Rebased patch attached.

On 19 October 2013 18:51, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> Hi Richard,
>
> The attached patch fixes pr17624, but I worry there might be more bugs
> like this. Some analysis must ignore hidden decls so that, for
> example, we accept
>
> void f4() {
>   void g4(int a, int b = 7);
>   {
>     void g4(int a, int b = 5);
>   }
>   void g4(int a = 5, int b);
> }
>
> but is isUsed really the only check that has to consider the true most
> recent decl?
>
> Cheers,
> Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 1537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131022/6a180aa8/attachment.bin>


More information about the cfe-commits mailing list