[cfe-dev] static char const []
Chris Lattner
clattner at apple.com
Mon Dec 10 17:40:30 PST 2007
>> 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.
This should work now, thanks to Steve and Anders for improving sema
to handle this.
-chris
More information about the cfe-dev
mailing list