public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16880] New: int i[foo,1];
@ 2004-08-04 19:13 terra at gnome dot org
  0 siblings, 0 replies; only message in thread
From: terra at gnome dot org @ 2004-08-04 19:13 UTC (permalink / raw)
  To: gcc-bugs

static void foo (void) { }
void bar (void) { int i[foo,1]; }

-->

> gcc-3.4 -Wall -c ~/foo.c
/home/welinder/foo.c: In function `bar':
/home/welinder/foo.c:2: error: parse error before ',' token

Adding () makes things work.

-- 
           Summary: int i[foo,1];
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: terra at gnome dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16880


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-04 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04 19:13 [Bug c/16880] New: int i[foo,1]; terra at gnome dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).