This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/653: Composite types bugs
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/653: Composite types bugs
- From: Joseph Myers <jsm28 at cam dot ac dot uk>
- Date: Tue, 17 Oct 2000 23:40:11 +0000
- Cc: jsm28 at cam dot ac dot uk
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, Joseph Myers <jsm28@cam.ac.uk>
>Number: 653
>Category: c
>Synopsis: Composite types bugs
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Oct 17 16:46:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Joseph S. Myers
>Release: 2.97
>Organization:
none
>Environment:
System: Linux decomino 2.2.17 #1 Mon Sep 4 20:22:16 UTC 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
>Description:
GCC fails to assign the composite type properly for multiple extern
declarations of an array in nested blocks.
>How-To-Repeat:
See gcc.c-torture/compile/20001018-1.c (XFAIL). This was inspired by
a discussion on comp.std.c.
void
foo (void)
{
extern char i[10];
{
extern char i[];
char x[sizeof (i) == 10 ? 1 : -1];
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: