[PATCH] Allow "redefinition" of typedef of anon tag from unimported submodule

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 13 16:03:12 PST 2015


This time sending to the right list address.

> On Nov 13, 2015, at 4:00 PM, Ben Langmuir <blangmuir at apple.com> wrote:
> 
> Hey Richard,
> 
> After your commit r233345 we started diagnosing “redefinition” errors for typedefs of anonymous tags that are *not visible* in case like this:
> 
> module that isn’t imported:
>   typedef struct { … } Foo_t;
> source file:
>   typedef struct { … } Foo_t;
> 
> I think the only change needed is to not consider these anonymous tags to be the same entity unless we’re in C++.  Patch attached.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redef-typedef.patch
Type: application/octet-stream
Size: 2442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151113/2a1a5572/attachment.obj>
-------------- next part --------------
> 
> 
> 
> Ben



More information about the cfe-commits mailing list