[cfe-dev] test/Sema/typedef-redef.c failure

Nuno Lopes nunoplopes at sapo.pt
Thu Jun 19 15:17:31 PDT 2008


Hi,

Is anyone else seeing a failure in the Sema/typedef-redef.c test?
I'm getting this output:

$ clang -fsyntax-only test/Sema/typedef-redef.c
test/Sema/typedef-redef.c:4:23: error: redefinition of 'size_t'
typedef unsigned long size_t;
                      ^
In file included from test/Sema/typedef-redef.c:3:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/stddef.h:214:23: error: 
previous definition is here
typedef __SIZE_TYPE__ size_t;
                      ^
2 diagnostics generated.

Notice that it is including gcc's stddef.h instead of clang's. (btw 
__SIZE_TYPE__ is defined as 'long unsigned int').

Nuno 




More information about the cfe-dev mailing list