Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Is "void f(int i) { return (void)i; }" legal? Message-ID: <12548@smoke.BRL.MIL> Date: 9 Apr 90 04:50:51 GMT References: <261E9779.25257@paris.ics.uci.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <261E9779.25257@paris.ics.uci.edu> rfg@paris.ics.uci.edu (Ronald Guilmette) writes: >For those who missed the subject line, I'd like to know if this is legal: > void f (int i) { return (void) i; } 3.6.6.4 The return statement Constraints A return statement with an expression shall not appear in a function whose return type is void.