[Bug c/26581] incomplete (unsized) static array types cannot be completed
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 6 14:10:00 GMT 2006
------- 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 contradicts 6.9.2 paragraph 3: "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.". (Undefined behavior
since it's not in a Constraints section, so diagnostic not required, but
as a quality of implementation matter it should be diagnosed at least with
-pedantic.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26581
More information about the Gcc-bugs
mailing list