This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

4.0 release notes patch: arrays of incomplete type

Arrays of incomplete type seem fairly common in real code, so this patch 
to the 4.0 release notes mentions that they are no longer accepted and 
indicates fixes for two common cases.  Committed.

Index: gcc-4.0/changes.html
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.0/changes.html,v
retrieving revision 1.30
diff -u -r1.30 changes.html
--- gcc-4.0/changes.html	10 Feb 2005 20:00:34 -0000	1.30
+++ gcc-4.0/changes.html	26 Feb 2005 02:05:26 -0000
@@ -124,6 +124,12 @@
     <li>Taking the address of a variable with <code>register</code>
         storage is invalid in C.  GCC now issues an error instead of a
+    <li>Arrays of incomplete element type are invalid in C.  GCC now
+        issues an error for such arrays.  Declarations such as
+        <code>extern struct s x[];</code> (where <code>struct s</code>
+        has not been defined) can be moved after the definition of
+        <code>struct s</code>.  Function parameters declared as
+        arrays of incomplete type can instead be declared as pointers.</li>

Joseph S. Myers      (personal mail) (CodeSourcery mail) (Bugzilla assignments and CCs)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]