[Bug c/36432] [4.2/4.3/4.4 Regression] �incompatible pointer type� with pointer to array as a struct member
--- Comment #2 from jsm28 at gcc dot gnu dot org 2009-02-06 15:35 --- This is actually a regression relative to GCC versions not supporting flexible array members (2.95 and before). Testing a patch. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jsm28 at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2008-06-04 10:46:01 |2009-02-06 15:35:13 date|| Summary|incompatible pointer type |[4.2/4.3/4.4 Regression] |with pointer to array as a |incompatible pointer type |struct member |with pointer to array as a ||struct member Target Milestone|--- |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36432
[Bug c/36432] [4.2/4.3/4.4 Regression] �incompatible pointer type� with pointer to array as a struct member
--- Comment #3 from jsm28 at gcc dot gnu dot org 2009-02-06 20:12 --- Subject: Bug 36432 Author: jsm28 Date: Fri Feb 6 20:12:10 2009 New Revision: 143989 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=143989 Log: PR c/36432 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields as indicating flexible array members unless the field itself is being declarared as the incomplete array. testsuite: * gcc.dg/c90-flex-array-2.c, gcc.dg/c99-flex-array-6.c: New tests. Added: trunk/gcc/testsuite/gcc.dg/c90-flex-array-2.c trunk/gcc/testsuite/gcc.dg/c99-flex-array-6.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-decl.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36432