[cfe-dev] static char const []
Steve Naroff
snaroff at apple.com
Sat Dec 8 06:59:12 PST 2007
This is a missing feature that will be added later today...
I need to review a patch by Anders Carlsson that fixes this missing
feature...
Thanks for the bug,
snaroff
On Dec 8, 2007, at 5:33 AM, Alexey Zakhlestin wrote:
> $ 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/
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list