This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12603] No return statement warning on function that never returns with -O3
- From: "zwin at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2004 15:37:01 -0000
- Subject: [Bug c/12603] No return statement warning on function that never returns with -O3
- References: <20031013221916.12603.james@ittc.ku.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zwin at users dot sourceforge dot net 2004-05-02 15:36 -------
I am also getting this warning about no return statement for methods in C++.
While a global function int noret() { for (;;); } does not fire the warning, the
same in a method does (3.2.3).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603