This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]