[cfe-commits] [patch] Error if a decl is redeclared with a different explicit visibility

Rafael Espíndola rafael.espindola at gmail.com
Wed Apr 25 19:36:22 CDT 2012


The attached patch makes clang produce an error for cases like

struct __attribute__((visibility("hidden"))) a;
struct __attribute__((visibility("default"))) b;

which gcc already rejects. Is it OK?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2316 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/cfe-commits/attachments/20120425/dfd96d6c/attachment.obj 


More information about the cfe-commits mailing list