[cfe-dev] Transparent union

Kovarththanan Rajaratnam krj at rajaratnam.dk
Fri Aug 1 10:34:35 PDT 2008


Hello,

Chris Lattner wrote:
> On Dec 18, 2007, at 3:41 AM, Sanghyeon Seo wrote:
> 
>> In GNU C Library, /usr/include/sys/wait.h defines __WAIT_STATUS as
>> __attribute__((__transparent_union__)) if __GNUC__ is defined.
>> (Otherwise it's void *.) As a result, if a program calls wait, clang
>> currently errors with "incompatible types".
> 
[SNIP]
> 
> Can you please file a bugzilla for this one to track it?
> 

Nuno Lopes has submitted a bug for this:

http://llvm.org/bugs/show_bug.cgi?id=2015

I also ran into this issue when compiling Wireshark.

-- 
Best Regards
Kovarththanan Rajaratnam




More information about the cfe-dev mailing list