[cfe-dev] Another array initializer bug

Chris Lattner clattner at apple.com
Wed Oct 31 19:45:27 PDT 2007


On Oct 26, 2007, at 7:21 PM, Keith Bauer wrote:

> CookieJar:~/Desktop keith$ cat > fptrinit.c
> typedef void (* fp)(void);
> void foo(void);
> fp a[1] = { foo };
> CookieJar:~/Desktop keith$ clang -fsyntax-only fptrinit.c
> fptrinit.c:3:13: error: initializer element is not constant
> fp a[1] = { foo };
>            ^~~

Fixed, thanks!

-Chris



More information about the cfe-dev mailing list