[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.