--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-31
02:41 ---
No you are thinking wrong, it will be the same warning as it is uninitialized,
the flag just turns on the
warnings for those cases.
--
What|Removed |Added
-
--- Additional Comments From oliverst at online dot de 2005-05-31 01:29
---
Yes, I did expect a different warning, because
int i = i;
would be uninitialized use and self initialization.
And because of an special warnings flag I expected it to be different from the
uninitialized use w
--- Additional Comments From dannysmith at users dot sourceforge dot net
2005-05-30 21:03 ---
I can't reproduce this with either gcc-3.4.4 or 4.0.0 on mingw
The example gives the warning
warning: 'i' might be used uninitialized in this function
iff I add -Winit-self
That is consistent
--
What|Removed |Added
Attachment #8504|application/octet-stream|text/plain
mime type||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19761
--- Additional Comments From oliverst at online dot de 2005-03-31 11:36
---
Created an attachment (id=8504)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8504&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19761
--- Additional Comments From oliverst at online dot de 2005-03-31 11:35
---
I tried it again with this GCC:
Using built-in specs.
Target: i686-pc-mingw32
Configured with: /datal/gcc/gcc/configure --prefix=/datal/gcc/build/wingcc
--build=i686-pc-linux-gnu --host=i686-pc-mingw32 --target=
--- 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
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-02
18:53 ---
This example works for me with both the C and C++ front-end. You must be making
a mistake.
--
What|Removed |Added
---
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-02
16:58 ---
There is a test in the testsuite for this so I don't understand why this is
failing.
http://gcc.gnu.org/ml/gcc-testresults/2005-02/msg00072.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19761