static char const []

$ 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

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

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 looking into this Steve and Anders. When this happens, please verify that the initializer also gets the appropriate type. Specifically, there should be an implicit cast from pointer to char to an array of char, and the type of that cast needs to have the appropriate array size.

Thanks for diving in Steve,

-Chris

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 looking into this Steve and Anders. When this happens, please verify that the initializer also gets the appropriate type. Specifically, there should be an implicit cast from pointer to char to an array of char, and the type of that cast needs to have the appropriate array size.

Thanks for diving in Steve,

No problem. I started looking into this today.

I expect to have my arms around it tomorrow (and hope to commit a modified version of Anders patch)...

snaroff

This should work now, thanks to Steve and Anders for improving sema to handle this.

-chris