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
>Originator:     Joseph S. Myers
>Release:        2.97
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

GCC fails to assign the composite type properly for multiple extern
declarations of an array in nested blocks.


See gcc.c-torture/compile/20001018-1.c (XFAIL).  This was inspired by
a discussion on comp.std.c.

foo (void)
  extern char i[10];

    extern char i[];
    char x[sizeof (i) == 10 ? 1 : -1];



More information about the Gcc-bugs mailing list