public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27120]  New: Should warn about uninitialized use of variable array element
@ 2006-04-11 15:56 rguenth at gcc dot gnu dot org
  2006-04-11 17:30 ` [Bug c/27120] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-04-11 15:56 UTC (permalink / raw)
  To: gcc-bugs

int foo(int i)
{
  char buffer[10];
  return buffer[i];
}

does not warn about the use of uninitialized array buffer.  While

int foo(int i)
{
  char buffer[10];
  return buffer[2];
}

does.  Likewise for C++.


-- 
           Summary: Should warn about uninitialized use of variable array
                    element
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org
OtherBugsDependingO 24639
             nThis:


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


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-27120-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2015-08-12 11:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-11 15:56 [Bug c/27120] New: Should warn about uninitialized use of variable array element rguenth at gcc dot gnu dot org
2006-04-11 17:30 ` [Bug c/27120] " pinskia at gcc dot gnu dot org
2006-04-30  7:47 ` pinskia at gcc dot gnu dot org
2009-03-28 13:40 ` fxcoudert at gcc dot gnu dot org
     [not found] <bug-27120-4@http.gcc.gnu.org/bugzilla/>
2015-08-12 11:15 ` mpolacek at gcc dot gnu.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).