This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50040] New: [4.5/4.6/4.7 Regression] missed warning: âx.yâ is used uninitialized in this function
- From: "jan.kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Aug 2011 19:29:39 +0000
- Subject: [Bug middle-end/50040] New: [4.5/4.6/4.7 Regression] missed warning: âx.yâ is used uninitialized in this function
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50040
Bug #: 50040
Summary: [4.5/4.6/4.7 Regression] missed warning: âx.yâ is used
uninitialized in this function
Classification: Unclassified
Product: gcc
Version: 4.5.4
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jan.kratochvil@redhat.com
Target: x86_64-unknown-linux-gnu
PASS: gcc (GCC) 4.4.7 20110810 (prerelease)
FAIL: gcc (GCC) 4.5.4 20110810 (prerelease)
FAIL: gcc (GCC) 4.6.2 20110810 (prerelease)
FAIL: gcc (GCC) 4.7.0 20110810 (experimental)
int *p;
void f (void)
{
struct { int y; } x;
*p = x.y;
}
--------------------------------------------------------------------------------
-c -Wall -O2
--------------------------------------------------------------------------------
PASS:
1.c: In function âfâ:
1.c:5: warning: âx.yâ is used uninitialized in this function
FAIL:
<nothing>