c/653: Composite types bugs

Joseph Myers jsm28@cam.ac.uk
Tue Oct 17 16:46:00 GMT 2000


>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:


More information about the Gcc-bugs mailing list