typedef'ing void

Ron Natalie <ron> ron at brl-tgr.ARPA
Tue Mar 12 13:27:20 AEST 1985


> I just discovered that our C compiler (4.2 cc) does not allow
> void to be typedef'ed; furthermore, it gives an error message
> that I haven't otherwise seen.  This suggests that this is its
> intended behaviour, and not another void bug.
> 
> Is there any reason to disallow new names for void?  Is this
> a bug or a feature?
> 
Doesn't surprise me.  Void seems to be a second class citizen in
the 4.2 compiler, kinda hacked in.  You can't declare pointers
to functions returning void.

-Ron



More information about the Comp.lang.c mailing list