Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 33327
Product:  
Component:  
Status: RESOLVED
Resolution: DUPLICATE of bug 18501
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Mark Hindley <mark@hindley.org.uk>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 33327 depends on: Show dependency tree
Show dependency graph
Bug 33327 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2007-09-06 21:52
gcc 4.1 and 4.2 fail to warn about an uninitialized variable in the following
testcase. gcc 3.3 correctly warns.

int 
foo(int i)
{
  int err;

  if (i) {
    err = 1;
  }
  return err;
}

Verified on 

gcc-4.2 (GCC) 4.2.1 (Debian 4.2.1-3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

------- Comment #1 From Andrew Pinski 2007-09-06 22:30 -------

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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug