This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
- 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: 13 Jul 2005 12:05:57 -0000
- Subject: [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
- References: <20040915183811.17506.nathan@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-13 12:05 -------
> Only in the reduced testcase as it was an empty loop.
Right. Here's a new testcase that still triggers the bug on mainline:
============================
inline int foo (int i)
{
if (i) return 1;
return 0;
}
void baz();
void bar()
{
int j;
for (; foo(j); ++j)
baz();
}
============================
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|22456 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506