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
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to