This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

c/485: Arrays of non-objects



>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:

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