This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/45180] bogus warning: array subscript is above array bounds
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2010 15:44:54 -0000
- Subject: [Bug tree-optimization/45180] bogus warning: array subscript is above array bounds
- References: <bug-45180-7360@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2010-08-04 15:44 -------
Since the compiler does not know that f() will never return, it is hard problem
to solve. If you mark f with the attribute noreturn, the warning will
disappear.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45180