Please consider the following program.

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

Compiler does not reports redecleration error for i.


-- 
           Summary: Problem with unintitalized global variables.
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jatin dot bhateja at amdocs dot com
  GCC host triplet: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
GCC target triplet: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)


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

Reply via email to