public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40943]  New: Uninitialized warning is missed when dereferencing uninitialized pointers
@ 2009-08-02 19:35 mikulas at artax dot karlin dot mff dot cuni dot cz
  2009-08-02 21:42 ` [Bug middle-end/40943] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mikulas at artax dot karlin dot mff dot cuni dot cz @ 2009-08-02 19:35 UTC (permalink / raw)
  To: gcc-bugs

Hi

This is a simple example that should warn about uninitialized variable, but
doesn't. Compile with -O2 -Wall:

void a(void)
{
        int *p1;
        *p1 = 3;
}

gcc-4.3 warned correctly in this case.


-- 
           Summary: Uninitialized warning is missed when dereferencing
                    uninitialized pointers
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikulas at artax dot karlin dot mff dot cuni dot cz
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-08-03 19:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-02 19:35 [Bug middle-end/40943] New: Uninitialized warning is missed when dereferencing uninitialized pointers mikulas at artax dot karlin dot mff dot cuni dot cz
2009-08-02 21:42 ` [Bug middle-end/40943] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2009-08-03 13:10 ` jakub at gcc dot gnu dot org
2009-08-03 13:41 ` jakub at gcc dot gnu dot org
2009-08-03 13:44 ` rguenth at gcc dot gnu dot org
2009-08-03 14:07 ` manu at gcc dot gnu dot org
2009-08-03 16:23 ` jakub at gcc dot gnu dot org
2009-08-03 19:26 ` jakub at gcc dot gnu dot org
2009-08-03 19:28 ` jakub at gcc dot gnu dot org
2009-08-03 19:32 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).