This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] enum enable
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: [RFA] enum enable
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 17 Jul 2001 12:46:32 -0500
- Cc: Jim Blandy <jimb at zwingli dot cygnus dot com>, msnyder at redhat dot com,gdb-patches at sources dot redhat dot com, ac131313 at cygnus dot com
- References: <Pine.SUN.3.91.1010717100642.27733G-100000@is>
Eli Zaretskii <eliz@is.elta.co.il> writes:
> In addition to Andrew's request to change that, GCC 2.7.2.1 barfs if
> it sees the declaration of a member `enable' together with a prototype
> of a function `enable' in the same compilation unit. In my case, the
> function is declared in one of the system headers, so I guess GCC sees
> it first and protests when the same identifier appears in a struct.
You've *got* to be kidding.
So, the following program gets an error?
extern int foo (void);
struct bar
{
int foo;
};