This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]