[Bug c/39134] front end does not reject sizeof on function types

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Feb 9 09:31:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list