Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2005 19:23:18 -0800 (PST)
From:      Brian Buchanan <bwb@holo.org>
To:        freebsd-hackers@freebsd.org
Subject:   silly gcc bug in RELENG_6
Message-ID:  <20051031192152.K12203@thought.holo.org>

next in thread | raw e-mail | index | archive | help
test.c:

typedef struct a astruct;

void
foobar(void)
{
   int s = sizeof(astruct);
}


> gcc test.c
test.c: In function `foobar':
test.c:6: error: invalid application of `sizeof' to incomplete type 
`test.c'
^^^^^^^^    Looks like someone goofed up some printf() args.

> gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518


- Brian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051031192152.K12203>