------- Comment #1 from schwab at suse dot de 2009-02-09 09:30 -------
This is a GCC extension, use -Wpointer-arith or -pedantic or -pedantic-errors.
$ gcc -c -std=c99 -pedantic-errors cast.c
cast.c: In function ‘test’:
cast.c:6: error: invalid application of ‘sizeof’ to a function type
cast.c:7: error: invalid application of ‘sizeof’ to a function type
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39134