|
From: | Hanzac Chen |
Subject: | [Tinycc-devel] Re: Can not work on the typeof a extern varaible |
Date: | Fri, 22 May 2009 17:14:44 +0800 |
Hi,
It reports an error when using typeof keyword on a extern variable.
e.g.
#include <stdio.h>
extern int a;
int main(void)
{
__typeof__(a) b = 0;
printf("%d\n", b);
return 0;
}
The output:
C:\tcc>tcc -c test_typeof.c
test_typeof.c:7: ';' expected
while gcc can compile this file.
Regards,
Hanzac
tccgen.c.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |