[Bug c/38563] sizeof(void) not diagnosed

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 18 01:34:00 GMT 2008



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-18 01:33 -------
-pedantic-errors causes an error to be outputted.  Since using pointer
arithmetic on void pointers is an extension, using sizeof on void is valid and
is defined as 1.

*** This bug has been marked as a duplicate of 22086 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38563



More information about the Gcc-bugs mailing list