This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11182] gcc should warn when assigning unassigned variables
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2003 13:35:36 -0000
- Subject: [Bug c++/11182] gcc should warn when assigning unassigned variables
- References: <20030613045823.11182.charles@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11182
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia@physics.uc.edu 2003-06-14 13:35 -------
With this source: int f(){ int x; int y = x; return y; }
I get a warning at -O1 -W -Wall with 2.95.2, 3.1, and the mainline ().
Do you want the warning at -O0 if you do this is a know problem?