[cfe-dev] visibility does not match previous declaration, again

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jun 3 14:20:59 PDT 2014


Can you open a bug?

On 28 November 2013 16:27, Andriy Gapon <avg at freebsd.org> wrote:
>
> I've run into a problem somewhat similar to
> http://llvm.org/bugs/show_bug.cgi?id=13662
>
> Reduced test case is:
> #pragma GCC visibility push(hidden)
> typedef struct foo bar;
> struct __attribute__((__visibility__("default"))) foo {};
>
> If the typedef line is commented out, then everything compiles just fine.
> It was unexpected to me that typedef can have this effect, but I am not sure
> what applicable standards say about this situation.
>
> --
> Andriy Gapon
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list