--
jsm28 at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-06 13:53 ---
Comeau C front-end also rejects this code:
Comeau C/C++ 4.3.3 (Aug 6 2003 15:13:37) for ONLINE_EVALUATION_BETA1
Copyright 1988-2003 Comeau Computing. All rights reserved.
MODE:strict errors C99
ComeauTest.c,
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-06 14:06 ---
Not a bug:
From C99, 6.9.2/3 says:
If the declaration of an identifier for an object is a tentative definition and
has internal
linkage, the declared type shall not be an incomplete type.
--
This is a
--- Comment #3 from joseph at codesourcery dot com 2006-03-06 14:10 ---
Subject: Re: New: incomplete (unsized) static array types
cannot be completed
On Mon, 6 Mar 2006, bernard at brenda-arkle dot demon dot co dot uk wrote:
static int thingy2[];
static int thingy2[1];
This
--- Comment #4 from bernard at brenda-arkle dot demon dot co dot uk
2006-03-06 18:35 ---
Thanks - I'd forgotten that 'static' declarations can be
tentative definitions too. But now I'm even more confused!
As I wrote, unsized arrays do one thing, undefined structs do another
(this is
--- Comment #5 from joseph at codesourcery dot com 2006-03-06 18:58 ---
Subject: Re: incomplete (unsized) static array types cannot be
completed
On Mon, 6 Mar 2006, bernard at brenda-arkle dot demon dot co dot uk wrote:
struct poo; /* declares an incomplete structure type, 6.7.2.3