This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/485: Arrays of non-objects
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/485: Arrays of non-objects
- From: Joseph Myers <jsm28 at cam dot ac dot uk>
- Date: Wed, 23 Aug 2000 21:05:55 +0000
- Cc: jsm28 at cam dot ac dot uk
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, Joseph Myers <jsm28@cam.ac.uk>
>Number: 485
>Category: c
>Synopsis: Arrays of non-objects
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Wed Aug 23 14:16:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Joseph S. Myers
>Release: 2.96
>Organization:
none
>Environment:
System: Linux decomino 2.2.16 #1 Thu Jun 8 00:26:22 UTC 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
>Description:
GCC fails to diagnose the construction of arrays of incomplete types.
Construction of arrays of function type causes tree-checking errors.
>How-To-Repeat:
See gcc.dg/c99-array-nonobj-1.c. Note that diagnostics should
probably not depend on the standard version; even though the old
standard did not require diagnostics here, the behavior was undefined.
Also note an ICE generated:
c99-array-nonobj-1.c:23: declaration of `c' as array of functions
c99-array-nonobj-1.c:23: Tree check: expected class 't', have 'x' (error_mark)
c99-array-nonobj-1.c:23: Internal compiler error in grokdeclarator, at c-decl.c:4653
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: