This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/13127] [tree-ssa] Inlining causes spurious "might be used uninitialized" warnings
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2003 16:26:36 -0000
- Subject: [Bug middle-end/13127] [tree-ssa] Inlining causes spurious "might be used uninitialized" warnings
- References: <20031119150542.13127.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-11-20 16:26 -------
With little variations you can get all sorts of funny behavior:
==================================
int foo () {}
int main () { return foo(); }
==================================
leads to
x.cc: In function `int foo()':
x.cc:1: warning: control reaches end of non-void function
which looks OK to me. However, with
==================================
int foo () {}
int main () { return foo(); }
==================================
I get
x.cc: In function `int foo()':
x.cc:1: warning: no return statement in function returning non-void
x.cc: In function `int main()':
x.cc:2: warning: '<anonymous>' might be used uninitialized in this function
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-20 16:26:36
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13127