[bug] false positive "invalid initializer"
Guennadi Liakhovetski <[email protected]>
| Newsgroups | org.kernel.vger.linux-sparse |
|---|---|
| Message-ID | <[email protected]> |
Hi
Using this example
void foo(void)
{
char c[] = "say";
__auto_type x = c;
const __typeof__(x) y = x;
(void)y;
}
results in
$ sparse -v -nostdinc -o ../l.o -c ../l.c
../l.c:4:25: error: invalid initializer
../l.c:5:33: error: invalid initializer
which appears to be a bug to me. Any fix suggestions would be appreciated.
Thanks
Guennadi