c/3764: Gcc incorrectly complains that a noreturn function returns

Richard Henderson rth@redhat.com
Mon Jul 23 03:42:00 GMT 2001


On Mon, Jul 23, 2001 at 05:23:52AM -0400, Phil Edwards wrote:
> So if the code in question concluded with
> 
>     ... some weird memory assignment ...
> 
>     exit(1);  /* NOTREACHED */
>    }
> 
> then it would recognize that this function isn't coming back?

Or, more simply,

	while (1);


r~



More information about the Gcc-bugs mailing list