On Saturday 2014-10-25 15:42, Holger Hans Peter Freyther wrote:
int foo() { unsigned int foo = 1212323123123; size_t bla = 2;
typeof(foo - bla) k; k = 3;
}
clang-3.4 -Xclang -ast-dump -fsyntax-only foo.c | `-VarDecl 0x99464f0 <col:2, col:20> k 'typeof (foo - bla)':'unsigned int'
If I read this correctly the type is 'unsigned int' with clang?
You seem to be compiling in LP32 mode. I get unsigned long -- which is what size_t amounts to on Linux/LP64.