Article View: gnu.gcc.bug
Article #6159Neat new bug!
From: Peter Seebach
Date: Tue, 19 Nov 1996 00:00
Date: Tue, 19 Nov 1996 00:00
11 lines
800 bytes
800 bytes
The declaration
int foo(void a[2]) {
}
is perfectly correct, and declares foo to take a *pointer to void* as
an argument. gcc -ansi -pedantic -Wall should not reject it. (I could
easily see a warning as appropriate, but the message
>t.c:3: declaration of `a' as array of voids
is clearly not correct; no parameter is ever an array.)
-s
Technical Details
Message-ID:
<9611191727.AA00679@moose.intran.xerox.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,4c4e632fb8296479,start X-Google-Attributes: gid113d02,public From: seebs@intran.xerox.com (Peter Seebach) Subject: Neat new bug! Date: 1996/11/19 Message-ID: <9611191727.AA00679@moose.intran.xerox.com> X-Deja-AN: 197550617 sender: bug-gcc-request@prep.ai.mit.edu x-gateway: relay5.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 19 Nov 1996 21:51:43 EST newsgroups: gnu.gcc.bug