[cfe-dev] static char const []
Alexey Zakhlestin
indeyets at gmail.com
Sat Dec 8 05:33:04 PST 2007
$ cat test.c
int main(void)
{
static char const test[] = "test";
}
$ clang -fsyntax-only test.c
test.c:3:20: error: variable has incomplete type 'char const []'
static char const test[] = "test";
^
1 diagnostic generated.
gcc-4.0 takes this construction easily.
originally found in bison-generated source
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
More information about the cfe-dev
mailing list