Bug 24891 - Problem with unintitalized global variables.
Summary: Problem with unintitalized global variables.
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.3.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 14:30 UTC by Jatin Bhateja
Modified: 2005-11-16 14:50 UTC (History)
1 user (show)

See Also:
Host: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
Target: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jatin Bhateja 2005-11-16 14:30:50 UTC
Please consider the following program.

int i;
int i;
int main() {
return 1;
}

Compiler does not reports redecleration error for i.
Comment 1 Andreas Schwab 2005-11-16 14:50:43 UTC
This is not a bug.  There can multiple tentative definitions for the same object.