[Bug c/46766] Type 'void' is treated differently if used as return value or as parameter
fredrik.hederstierna@securitas-direct.com
gcc-bugzilla@gcc.gnu.org
Thu Dec 2 14:42:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46766
--- Comment #2 from Fredrik Hederstierna <fredrik.hederstierna@securitas-direct.com> 2010-12-02 14:42:35 UTC ---
Ok, but also f1() declares that it does not return any parameters, still it can
return (void)0;
I'm not saying either is wrong, I just though it should be consistent.
If its ok to _return_ (void) from a function, why is it not ok to have (void)
as _inparameter_ to a function. Where is the logical difference?
/Fredrik
More information about the Gcc-bugs
mailing list