[Bug middle-end/13127] [tree-ssa] Inlining causes spurious "might be used uninitialized" warnings
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Nov 20 16:26:00 GMT 2003
------- 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
More information about the Gcc-bugs
mailing list