This is the mail archive of the
mailing list for the GCC project.
GCC rejecting (I think) valid code
- From: "Sam Lauber" <sam124 at operamail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 22 Jan 2005 22:58:21 +0100
- Subject: GCC rejecting (I think) valid code
I compile this pair of declarations with GCC (which would
probably be found in a stdint.h):
typedef short int16_t;
typedef unsigned int16_t uint16_t;
The first declaration is OK, but GCC gives me an error on
the second one. That dosen't make sense, because part of
the C89 grammar is
(some types) typedef-name
typedef-declaration: something like
`typedef' type-name typedef-name
So it would be parsed as
I think this is a bug. Is it?
Web-based SMS services available at http://www.operamail.com.
From your mailbox to local or overseas cell phones.
Powered by Outblaze