User account creation filtered due to spam.

Bug 42724

Summary: Trivial uninitialized variable not spotted
Product: gcc Reporter: Xavier Roche <roche+gccbugs>
Component: cAssignee: Not yet assigned to anyone <unassigned>
Severity: normal CC: christoph.mallon, david.cuthbert, dberlin, dhill, fredrik, gcc-bugs, hp, jellegeerts, manu, mark, mueller, P.Schaffnit, pinskia, roche+gccbugs, satyam, thutt, vincent-gcc
Priority: P3 Keywords: diagnostic
Version: 4.4.0   
Target Milestone: ---   
Host: Target: x86_64-unknown-linux-gnu
Build: Known to work:
Known to fail: Last reconfirmed:
Attachments: Test case that should produce a warning with -O -Wuninitialized

Description Xavier Roche 2010-01-13 13:13:01 UTC
Possibly related to BUG 39799

The attached very simple test case does not produce any warning on build, using '-W -Wall -Wextra -O3 -Wuninitialized -Werror'.

If the condition is not seen as false at build time, the compiler does not complaint.
Comment 1 Xavier Roche 2010-01-13 13:14:24 UTC
Created attachment 19570 [details]
Test case that should produce a warning with -O -Wuninitialized
Comment 2 Richard Biener 2010-01-13 13:39:49 UTC
The uninitialized use is optimized away before we would warn about it.
Comment 3 Manuel López-Ibáñez 2010-01-13 16:33:38 UTC
CCP removing the uninitialized value.

*** This bug has been marked as a duplicate of 18501 ***