[Bug c/26581] incomplete (unsized) static array types cannot be completed
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 6 14:07:00 GMT 2006
------- 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 tentative definition and is internal linkage and in this case the
type incomplete so it is invalid code which is correctly rejected.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26581
More information about the Gcc-bugs
mailing list