This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42674] [4.4/4.5 Regression] Bogus "no return statement in function returning non-void" warning
- From: "davek at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2010 19:08:00 -0000
- Subject: [Bug middle-end/42674] [4.4/4.5 Regression] Bogus "no return statement in function returning non-void" warning
- References: <bug-42674-14373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from davek at gcc dot gnu dot org 2010-01-11 19:07 -------
(In reply to comment #3)
> (even without the __noreturn__?)
Yes, even without.
> I think this may be actually two bugs, one is the noreturn which should set
> current_function_returns_abnormally to true, so no warning. Another is that the
> function is not marked as never returning because of the infinite loop.
Sounds right to me. Ok to leave them both under this one PR, or should we
separate them?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42674