------- Additional Comments From oliverst at online dot de  2005-02-03 10:19 
-------
strange...I just tried it again with this example:

extern void foo(int);

int main()
{
        int i = i;
        foo(i);
        return i;
}

And I get only this (C and C++ front-end / -O1, -O2 and -O3):

$ gcc -Wuninitialized -Winit-self -O1 test.cpp
test.cpp: In function `int main()':
test.cpp:5: warning: 'i' might be used uninitialized in this function

Maybe it was fixed between GCC 3.4.2 and GCC 3.4.3? Or it's a target-specific
problem? I unfortunately don't have a linux GCC 3.4.2.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19761

Reply via email to